getRecords method

  1. @override
Future<List<Map<String, dynamic>>> getRecords(
  1. String tableName
)
override

Implementation

@override
Future<List<Map<String, dynamic>>> getRecords(String tableName) async {
  final accessor = collections[tableName];
  if (accessor == null) throw Exception('Collection $tableName not found');
  return await accessor.getAllRecords();
}