findWithFinder method

Future<List<Map<String, dynamic>>> findWithFinder(
  1. Finder finder
)

Find records matching the given finder.

Implementation

Future<List<Map<String, dynamic>>> findWithFinder(Finder finder) async {
  final recordSnapshot = await _collection.find(_database, finder: finder);
  return recordSnapshot.map((snapshot) {
    var map = cloneMap(snapshot.value as Map<String, dynamic>);
    map[ID_KEY] = snapshot.key as int?;
    return map;
  }).toList();
}