Injector class

A class that represents the Injector functionality.

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
autoDisposePutT method.
clearCaches() → void
clearCaches method.
debugPrintDependencies() → void
debugPrintDependencies method.
delete<T>() → void
deleteT method.
deleteTagged<T>(String tag) → void
deleteTaggedT> method.
disposeAll() → void
disposeAll method.
disposeScope(String scope) → void
disposeScope method.
find<T>() → T
findT method.
findTagged<T>(String tag) → T
findTaggedT method.
getOrNull<T>() → T?
getOrNullT method.
isRegistered<T>() bool
isRegisteredT method.
lazyPut<T>(T builder()) → void
lazyPutT method.
override<T>(T instance) → void
overrideT> method.
put<T>(T instance) → T
putT method.
putAsync<T>(Future<T> builder()) Future<void>
putAsyncT method.
putScoped<T>(T instance, String scope) → void
putScopedT method.
putTagged<T>(T instance, String tag) → void
putTaggedT method.
reset() → void
reset method.