writeHive method
Implementation
Future writeHive(key, data) async {
var box = await Hive.openBox(boxName);
box.put(key, data);
print('successfully saved data:$data for key:$key');
}
Future writeHive(key, data) async {
var box = await Hive.openBox(boxName);
box.put(key, data);
print('successfully saved data:$data for key:$key');
}