exists<T extends _Model> method

dynamic exists<T extends _Model>({
  1. Query? query,
  2. ModelRepository<_Model>? repository,
})

Whether a model instance is present. null is returned when existence is unknown. The model instance is not hydrated in the function output; a bool variant (e.g. List<bool>, Map<_Model, bool>) should be returned.

Implementation

// ignore: always_declare_return_types
exists<T extends _Model>({Query? query, ModelRepository<_Model>? repository}) => null;