BaseController<T extends Model> class
abstract
- Inheritance
-
- Object
- Collection<
T> - BaseController
- Implemented types
Constructors
- BaseController(String id)
Properties
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
-
onTrigger(
WatchableChangeAction watchableChangeAction, dynamic data) → Future< WatchableChangeResult> -
On Watcher was triggered
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
-
trigger(
WatchableChangeAction watchableChangeAction, dynamic data) → Future< WatchableChangeResult> -
Trigger Watcher
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited