Model<T> mixin Null safety

Mixin Applications

Properties

createdAt DateTime?
DateTime when document is created
read / write
updatedAt DateTime?
DateTime when document is updated
read / write
docId String?
document id FirestoreModel will get it for your model
read / write
path String?
A string representing the path of the referenced document (relative to the root of the database).
read / write
parentPath String?
we will fill it if model is SubCollection
read / write
withTimestamps bool
default true set timestamps
read-only
perPage int
default items in page
read-only
toMap Map<String, dynamic>
model mapping to write in collection
read-only
responseBuilder ResponseBuilder<T>
model mapping to write in collection
read-only
collectionName String
collection name FirestoreModel use your Model name
read-only
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

instance<T extends Object>() → T