Inject<T> class

Base class for Inject

Inheritance

Constructors

Inject(T creationFunction(), {dynamic name, bool isLazy = true})
Inject a value or a model.
factory
Inject.future(Future<T> creationFutureFunction(), {dynamic name, bool isLazy = false, T? initialValue})
factory
Inject.interface(Map<dynamic, FutureOr<T> Function()> impl, {dynamic name, T? initialValue})
Injected a map of flavor
factory
Inject.stream(Stream<T> creationFutureFunction(), {dynamic name, bool isLazy = false, T? initialValue, Object? watch(T?)?})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
injected ReactiveModel<T>
final
isGlobal bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getName() String
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