setHiveMap method

Future setHiveMap(
  1. String boxName,
  2. Map data, {
  3. bool clearExistingData = false,
})

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);
}