exists<T extends _Model> method
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;