MockDocumentSnapshot<T extends Object?> class

A class which mocks DocumentSnapshot.

See the documentation for Mockito's code generation for more information.

Constructors

MockDocumentSnapshot()

Properties

exists bool
Returns true if the document exists.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
id String
This document's given ID for this snapshot.
no setteroverride
metadata → SnapshotMetadata
Metadata about this document concerning its source and if it has local modifications.
no setteroverride
reference → DocumentReference<T>
Returns the reference of this snapshot.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

data() → T?
Contains all the data of this document snapshot.
inherited
get(Object? field) → dynamic
Gets a nested field by String or FieldPath from this DocumentSnapshot.
override
noSuchMethod(Invocation invocation, {Object? returnValue, Object? returnValueForMissingStub = deferToDefaultResponse}) → dynamic
Handles method stubbing, method call verification, and real method calls.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](Object? field) → dynamic
Gets a nested field by String or FieldPath from this DocumentSnapshot.
override