AsyncBind<T extends Object> class
AsyncBind represents an asynchronous Bind that can be resolved before module initialization by calling Modular.isModuleReady() or called with Modular.getAsync()
Constructors
Properties
- alwaysSerialized → bool
-
flag for indicate serialization
finalinherited
-
asyncInject
→ Future<
T> Function(Injector i) -
final
- bindType → Type
-
no setterinherited
- export → bool
-
export bind for others modules
This bind can only be accessed when imported by a module.
finalinherited
-
factoryFunction
→ Future<
T> Function(Injector i) -
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLazy → bool
-
When 'true', the object is instantiated only the first time it is called.
When 'false', the object is instantiated along with the module.
finalinherited
- isScoped → bool
-
create single instance for request
finalinherited
- isSingleton → bool
-
single instance
finalinherited
-
onDispose
→ (void Function(Future<
T> value)?) -
Called in module`s dispose.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selector
→ (dynamic Function(Future<
T> value)?) -
Generate reactive object
finalinherited
Methods
-
cast<
E extends Object> () → Bind< E> -
inherited
-
convertToBind(
) → Future< BindContract< T> > - Convert to synchronous Bind
-
copyWith(
{Future< T> factoryFunction(Injector i)?, bool? isSingleton, bool? isLazy, bool? export, bool? isScoped, bool? alwaysSerialized, void onDispose(Future<T> value)?, dynamic selector(Future<T> value)?}) → AsyncBind<T> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDisposeFunc(
Object o) → dynamic -
inherited
-
onSelectorFunc(
Object o) → dynamic -
inherited
-
resolveAsyncBind(
) → Future< T> - Get the value of the bind
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited