AsyncLifecycle class abstract
An interface for entities that must be initialized and disposed. You can use this interface both for asynchronous and synchronous initialization.
If your entity implements this interface and it's created in ScopeContainer, you have to use AsyncDep for instance and pass this dep into ScopeContainer.initializeQueue.
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
-
dispose(
) → Future< void> - When you use AsyncLifecycle in ScopeContainer, this method will be called during dispose of the ScopeContainer.
-
init(
) → Future< void> - When you use AsyncLifecycle in ScopeContainer, this method will be called during initialization of this ScopeContainer.
-
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