From 1e534238107445d7cfd6f17d7146cdab47fafdba Mon Sep 17 00:00:00 2001 From: Hassan Hallak Date: Mon, 25 Jul 2022 09:21:23 +0300 Subject: [PATCH] add set to key && box --- hive/lib/src/object/hive_object.dart | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hive/lib/src/object/hive_object.dart b/hive/lib/src/object/hive_object.dart index 7fcaa0281..a179652f2 100644 --- a/hive/lib/src/object/hive_object.dart +++ b/hive/lib/src/object/hive_object.dart @@ -13,6 +13,15 @@ mixin HiveObjectMixin { dynamic _key; + void set setKey(dynamic key){ + print("BoxBase"); + this._key=key; + } + set setBox(BoxBase box){ + print("BoxBase"); + this._box=box; + } + // HiveLists containing this object final _hiveLists = {};