Inject<T> class Null safety

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. [...]
read-only, inherited
injected ReactiveModel<T>
final
isGlobal bool
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getName() String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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