LazyControl mixin
Mixin class for every Disposable object - mostly used with ControlModel. If object is initialized by ControlFactory.get then is stored into Factory. Object is removed from factory on dispose.
To prevent early remove set preventDispose or preferSoftDispose and then dispose object manually.
factoryKey represents key under which is object stored in ControlFactory - check ControlFactory.keyOf for more info about key.
Use ReferenceCounter mixin to automatically count number of references and prevent early dispose.
- Superclass constraints
- Available extensions
Properties
- factoryKey → dynamic
-
keyunder which is object stored in ControlFactory. Value of key is set by Factory - check ControlFactory.keyOf for more info aboutkey.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
Used to clear and dispose object.
Unsubscribe and close all sources. Prepare object for GC.
Can be called multiple times!
override
-
disposeWith(
DisposeObserver observer) → void -
Available on Disposable, provided by the DisposableExt extension
Register for dispose with givenobserver. -
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