MockModelAdapter class

Inheritance
Annotations

Constructors

MockModelAdapter({required String userId, required Map<String, dynamic> data})
const

Properties

data Map<String, dynamic>
final
email String
You can get the Email after authentication is completed.
no setteroverride
enabled bool
true if Module is enabled.
finalinherited
enabledAuth bool
Return true If authentication is enabled.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
id String?
ID of the module.
finalinherited
isAnonymously bool
For anonymous logged in users, True.
no setteroverride
isSignedIn bool
True if you are signed in.
no setteroverride
isVerified bool
You can get the status that user email is verified after authentication is completed.
no setteroverride
name String
You can get the Display Name after authentication is completed.
no setteroverride
phoneNumber String
You can get the PhoneNumber after authentication is completed.
no setteroverride
photoURL String
You can get the PhotoURL after authentication is completed.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
Module Type.
no setterinherited
userId String
You can get the UID after authentication is completed.
final

Methods

collectionProvider(String path) ModelProvider<RuntimeDynamicCollectionModel>
Performs the process of loading a document.
override
createDocument(RuntimeDynamicCollectionModel collection, [String? id]) RuntimeDynamicDocumentModel
Performs the process of loading a collection.
override
deleteDocument(RuntimeDynamicDocumentModel document) Future<void>
Deletes information associated with a document.
override
documentProvider(String path) ModelProvider<RuntimeDynamicDocumentModel>
Gets the provider of the Document.
override
fromMap(dynamic map) MockModelAdapter?
Convert the module information from DynamicMap.
override
loadCollection(RuntimeDynamicCollectionModel collection, [bool once = false]) RuntimeDynamicCollectionModel
Performs the process of loading a collection.
override
loadDocument(RuntimeDynamicDocumentModel document, [bool once = false]) RuntimeDynamicDocumentModel
Performs the process of loading a document.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerInEmailAndPassword({required String email, required String password}) Future<void>
Register as a user using your email and password.
override
saveDocument(RuntimeDynamicDocumentModel document) Future<void>
Save the data in the document so that you can use it after restarting the app.
override
sendPasswordResetEmail({required String email}) Future<void>
Email for password reset will be sent to the specified email.
override
signInAnonymously() Future<void>
Guest login.
override
signInEmailAndPassword({required String email, required String password}) Future<void>
Login using your email and password.
override
signOut() Future<void>
Log out.
override
toMap() → dynamic
Convert the module information to DynamicMap.
override
toString() String
A string representation of this object.
inherited
tryRestoreAuth() Future<void>
Used to restore your login information.
override
uploadMedia(String path) Future<String>
Upload your media.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited