findByFilter method
findByFilter
Implementation
Future<List<WLogModel>> findByFilter({required List<Filter> filters}) async {
final finder = Finder(
filter: Filter.and(filters),
sortOrders: [SortOrder(WLogConstants.FIELD_TIME)],
);
final recordSnapshots = await _flogsStore.find(await _db, finder: finder);
return recordSnapshots.map((snapshot) {
final log = WLogModel.fromJson(snapshot.value);
log.id = snapshot.key;
return log;
}).toList();
}