get method

Future<List<T>> get()

Executes the query and returns all matching models.

Implementation

Future<List<T>> get() async {
  final rows = await _builder.get();
  return rows.map((row) {
    final model = _factory(row);
    model.setRawData(_executor, row);
    return model;
  }).toList();
}