BindContract<T extends Object> class
abstract
Constructors
-
BindContract(T factoryFunction(Injector i), {bool isSingleton = true, bool isLazy = true, bool export = false, bool isScoped = false, bool alwaysSerialized = false, void onDispose(T value)?, dynamic selector(T value)?})
-
Properties
-
alwaysSerialized
→ bool
-
flag for indicate serialization
final
-
bindType
→ Type
-
no setter
-
export
→ bool
-
export bind for others modules
This bind can only be accessed when imported by a module.
final
-
factoryFunction
→ T Function(Injector i)
-
final
-
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.
final
-
isScoped
→ bool
-
create single instance for request
final
-
isSingleton
→ bool
-
single instance
final
-
onDispose
→ (void Function(T value)?)
-
Called in module`s dispose.
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
selector
→ (dynamic Function(T value)?)
-
Generate reactive object
final