setHiveMap method
Implementation
Future setHiveMap(String boxName, Map data, {bool clearExistingData = false}) async {
var _box = await Get.openSafeBox(boxName);
if (clearExistingData) await _box.clear();
await _box.putAll(data);
}
Future setHiveMap(String boxName, Map data, {bool clearExistingData = false}) async {
var _box = await Get.openSafeBox(boxName);
if (clearExistingData) await _box.clear();
await _box.putAll(data);
}