findAll static method
Implementation
static Future<List<Map<String, dynamic>>> findAll(String table) async {
List<Map<String, dynamic>> list = [];
if (!initialized) return list;
try {
var box = await Hive.openBox(table);
var values = box.toMap();
values.forEach((key, value) => list.add({key.toString(): value}));
} catch (e) {
Log().error('Error Querying All Record Keys in Table [$table]');
Log().exception(e,
caller:
'database.dart => Future<dynamic> findAll(String tableName) async');
}
return list;
}