BindContract<T extends Object> class abstract

Implementers

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

Methods

cast<E extends Object>() BindContract<E>
copyWith({T factoryFunction(Injector i)?, bool? isSingleton, bool? isLazy, bool? export, bool? isScoped, bool? alwaysSerialized, void onDispose(T value)?, dynamic selector(T value)?}) BindContract<T>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDisposeFunc(Object o) → dynamic
onSelectorFunc(Object o) → dynamic
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited