Injector class

Constructors

Injector.new()

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

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

Static Properties

enableLogs bool
getter/setter pair
onEvent InjectorHook?
getter/setter pair

Static Methods

autoDisposePut<T>(T instance) → void
debugPrintDependencies() → void
delete<T>() → void
deleteTagged<T>(String tag) → void
disposeAll() → void
disposeScope(String scope) → void
find<T>() → T
findTagged<T>(String tag) → T
getOrNull<T>() → T?
isRegistered<T>() bool
lazyPut<T>(T builder()) → void
override<T>(T instance) → void
put<T>(T instance) → T
putAsync<T>(Future<T> builder()) Future<void>
putScoped<T>(T instance, String scope) → void
putTagged<T>(T instance, String tag) → void
reset() → void