findAllModelsOfType<T extends BaseModel> method

FutureOr<Iterable<T>> findAllModelsOfType<T extends BaseModel>(
  1. T supplier()
)

This functions finds all models of the given type that have their BaseModel.id start with the prefix given by the suppliers BaseModelIDExtension.prefixTypeForId

Implementation

FutureOr<Iterable<T>> findAllModelsOfType<T extends BaseModel>(
  T Function() supplier,
) =>
    database.findAllModelsOfType(databaseName, supplier);