where method

Future<List<T>> where(
  1. String column,
  2. dynamic value
)

Get all records matching a condition.

Implementation

Future<List<T>> where(String column, dynamic value) async
{
  final rows = await dbService.get(table, where: '$column = ?', params: [value]);
  return rows.map((e) => fromMap(e)).toList();
}