CollectionController<T extends Model> class Null safety

Inheritance

Constructors

CollectionController(String id)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

clear() Future<bool>
inherited
createModel(Map<String, dynamic> modelData) → T?
Create new Model from Data
inherited
getCacheId() String
Returns Cache Id for this Collection
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>
Return Models In Collection
inherited
getModelsAsList({int? max, int start = 0}) List<T>
Return Models as List
inherited
hasModel(String id) bool
Collection contains Model with id
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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
saveModels(List<Model> models, {bool breakOnError = false}) Future<void>
Save Models to Cache and add to Map
inherited
setModels(Map<String, T> models) → void
inherited
setup() Future<bool>
Initialize your Model Data Here
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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