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 = accessors[tableName];
  if (accessor == null) {
    throw Exception('Collection $tableName not found in accessors.');
  }
  return await accessor.getAllRecords();
}