MockQuery<T extends Object?> class
A class which mocks Query
.
See the documentation for Mockito's code generation for more information.
Constructors
Properties
- firestore → FirebaseFirestore
-
The
FirebaseFirestore
instance of this query.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
-
parameters
→ Map<
String, dynamic> -
Exposes the parameters on the query delegate.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
endAt(
List< Object?> ? values) → Query<T> -
Takes a list of
values
, creates and returns a newQuery
that ends at the provided fields relative to the order of the query.override -
endAtDocument(
DocumentSnapshot< Object?> ? documentSnapshot) → Query<T> -
Creates and returns a new
Query
that ends at the provided document (inclusive). The end position is relative to the order of the query. The document must contain all of the fields provided in the orderBy of this query.override -
endBefore(
List< Object?> ? values) → Query<T> -
Takes a list of
values
, creates and returns a newQuery
that ends before the provided fields relative to the order of the query.override -
endBeforeDocument(
DocumentSnapshot< Object?> ? documentSnapshot) → Query<T> -
Creates and returns a new
Query
that ends before the provided document snapshot (exclusive). The end position is relative to the order of the query. The document must contain all of the fields provided in the orderBy of this query.override -
get(
[GetOptions? options]) → Future< QuerySnapshot< T> > -
Fetch the documents for this query.
override
-
limit(
int? limit) → Query< T> -
Creates and returns a new Query that's additionally limited to only return up
to the specified number of documents.
override
-
limitToLast(
int? limit) → Query< T> -
Creates and returns a new Query that only returns the last matching documents.
override
-
noSuchMethod(
Invocation invocation, {Object? returnValue, Object? returnValueForMissingStub = deferToDefaultResponse}) → dynamic -
Handles method stubbing, method call verification, and real method calls.
inherited
-
orderBy(
Object? field, {bool? descending = false}) → Query< T> -
Creates and returns a new
Query
that's additionally sorted by the specifiedfield
. The field may be a String representing a single field name or aFieldPath
.override -
snapshots(
{bool? includeMetadataChanges = false}) → Stream< QuerySnapshot< T> > -
Notifies of query results at this location.
override
-
startAfter(
List< Object?> ? values) → Query<T> -
Takes a list of
values
, creates and returns a newQuery
that starts after the provided fields relative to the order of the query.override -
startAfterDocument(
DocumentSnapshot< Object?> ? documentSnapshot) → Query<T> -
Creates and returns a new
Query
that starts after the provided document (exclusive). The starting position is relative to the order of the query. ThedocumentSnapshot
must contain all of the fields provided in the orderBy of this query.override -
startAt(
List< Object?> ? values) → Query<T> -
Takes a list of
values
, creates and returns a newQuery
that starts at the provided fields relative to the order of the query.override -
startAtDocument(
DocumentSnapshot< Object?> ? documentSnapshot) → Query<T> -
Creates and returns a new
Query
that starts at the provided document (inclusive). The starting position is relative to the order of the query. The document must contain all of the fields provided in the orderBy of this query.override -
toString(
) → String -
A string representation of this object.
inherited
-
where(
Object? field, {Object? isEqualTo, Object? isNotEqualTo, Object? isLessThan, Object? isLessThanOrEqualTo, Object? isGreaterThan, Object? isGreaterThanOrEqualTo, Object? arrayContains, List< Object?> ? arrayContainsAny, List<Object?> ? whereIn, List<Object?> ? whereNotIn, bool? isNull}) → Query<T> -
Creates and returns a new
Query
with additional filter on specifiedfield
.field
refers to a field in a document.override -
withConverter<
R> ({FromFirestore< R> ? fromFirestore, ToFirestore<R> ? toFirestore}) → Query<R> -
Transforms a
Query
to manipulate a custom object instead of aMap<String, dynamic>
.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited