getById method
Return data that is referenced by the given Id
in the table
.
Implementation
@override
Future<Map<String, dynamic>> getById(
String table,
String primaryColumn,
int id,
) async {
return _ref(table).firstWhere((item) => item[primaryColumn] == id);
}