Model<T> mixin

Mixin Applications

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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