CollectionController<T extends Model> class abstract

Inheritance

Constructors

CollectionController(String id)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() Future<bool>
inherited
createModel(Map<String, dynamic> modelData) → T?
Create new Model from Data
inherited
getCacheId() String
inherited
getId() String
Returns Collection Id
inherited
getModelByFieldValue(String key, dynamic value) → T?
Returns Model With Specific Value
inherited
getModelById(String id) → T?
Returns Model by Id
inherited
getModels() Map<String, T>
Returns Models In Collection
inherited
hasModel(String id) bool
Collection contains Model with id
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeModelById(String id) Future<bool>
inherited
saveModel(Model model) Future<bool>
Save Model to Cache and add to Map
inherited
setModels(Map<String, T> models) → void
inherited
setup() Future<void>
Initialize your Model Data Here
inherited
toString() String
A string representation of this object.
inherited

Operators

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