searchByModelAndFields<T extends BaseModel> method
Finds all models in databaseName that have values that match the passed
model
's values
Only values that are mapped to keys in fields
will be considered.
Implementation
FutureOr<Iterable<T>> searchByModelAndFields<T extends BaseModel>(
T Function() supplier,
T model,
List<String> fields,
) async {
return await database.searchByModelAndFields(
databaseName,
supplier,
model,
fields,
);
}