Bind<T extends Object> class
Properties
-
export
→ bool
-
export bind for others modules
final
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
inject
→ T Function(Inject i)
-
final
-
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
-
isSingleton
→ bool
-
single instance object?
final
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
factory<T extends Object>(T inject(Inject i), {bool export = false})
→ Bind<T>
-
Bind a factory. Always a new constructor when calling Modular.get
-
instance<T extends Object>(T instance, {bool export = false})
→ Bind<T>
-
Bind an already exist 'Instance' of object..
-
lazySingleton<T extends Object>(T inject(Inject i), {bool export = false})
→ Bind<T>
-
Bind a 'Lazy Singleton' class.
Built only when called the first time using Modular.get.
The instance will always be the same.
-
singleton<T extends Object>(T inject(Inject i), {bool export = false})
→ Bind<T>
-
Bind a 'Singleton' class.
Built together with the module.
The instance will always be the same.