Injector class

Implementers

Constructors

Injector()

Properties

hashCode int
The hash code for this object.
no setterinherited
isCommitted bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add<T>(Function constructor, {String? key}) → void
addInjector(Injector injector) → void
addInstance<T>(T instance, {String? key}) → void
addLazyInstance<T>(Future<T> instance, {String? key}) → void
addSingleton<T>(Function constructor, {String? key}) → void
commit() → void
get<T>({String? key}) → T
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
toString() String
A string representation of this object.
inherited
tryGet<T>({String? key}) → T?
tryUse<T>({String? key}) → T?
uncommit() → void
use<T>({String? key}) → T
waitFor<T>(dynamic cmd(), {Duration duration = const Duration(milliseconds: 100)}) → void

Operators

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