InheritedModelAdapter<TDocument extends DynamicDocumentModel, TCollection extends DynamicCollectionModel<DynamicDocumentModel> > class
- Inheritance
-
- Object
- Module
- ModelAdapter<
TDocument, TCollection> - InheritedModelAdapter
- Annotations
Constructors
-
InheritedModelAdapter(ModelAdapter<
TDocument, TCollection> adapter, {String prefix = "", String suffix = ""}) -
const
Properties
-
adapter
→ ModelAdapter<
TDocument, TCollection> -
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
- prefix → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- suffix → String
-
final
- type → String
-
Module Type.
no setterinherited
- userId → String
-
You can get the UID after authentication is completed.
no setteroverride
Methods
-
collectionProvider(
String path) → ModelProvider< TCollection> -
Performs the process of loading a document.
override
-
createDocument(
TCollection collection, [String? id]) → TDocument -
Performs the process of loading a collection.
override
-
deleteDocument(
TDocument document) → Future< void> -
Deletes information associated with a document.
override
-
documentProvider(
String path) → ModelProvider< TDocument> -
Gets the provider of the Document.
override
-
fromMap(
dynamic map) → InheritedModelAdapter< DynamicDocumentModel, DynamicCollectionModel< ?DynamicDocumentModel> > -
Convert the module information from
DynamicMap
.override -
loadCollection(
TCollection collection, [bool once = false]) → TCollection -
Performs the process of loading a collection.
override
-
loadDocument(
TDocument document, [bool once = false]) → TDocument -
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
andpassword
.override -
saveDocument(
TDocument 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
andpassword
.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