ObservableComponent<T> mixin
- Superclass Constraints
- Implemented types
-
- Mixin Applications
-
Methods
-
cancel(ControlSubscription<T?> subscription)
→ void
-
override
-
cast<U>()
→ ObservableValue<U>
-
override
-
dispose()
→ void
-
Used to clear and dispose object.
After this method call is object typically unusable and ready for GC.
Can be called multiple times!
override
-
init(Map args)
→ void
-
Init is typically called right after constructor by framework.
args
- Arguments passed from parent or through Factory.
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
notify()
→ void
-
override
-
register(dynamic object)
→ void
-
Used to register interface/handler/notifier etc.
Can be called multiple times with different objects!
inherited
-
requestDispose([dynamic parent])
→ void
-
Executes dispose based on preventDispose and preferSoftDispose settings.
parent
- actual object that requesting dispose.
inherited
-
setValue(T? value, {bool notify = true, bool forceNotify = false})
→ void
-
-
softDispose()
→ void
-
Just soft dispose - stop loading / subscriptions etc.
For example called when List item hides and is recycled.
Also useful when Control is used with multiple Widgets to prevent fatal dispose.
inherited
-
subscribe(ValueCallback<T?> action, {bool current = true, dynamic args})
→ ControlSubscription<T?>
-
override
-
toString()
→ String
-
A string representation of this object.
inherited