searchByModelAndFields<T extends BaseModel> method

FutureOr<Iterable<T>> searchByModelAndFields<T extends BaseModel>(
  1. T supplier(),
  2. T model,
  3. List<String> fields
)

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,
  );
}