ModuleRef class abstract
Module reference.
The reference method of the current module, through call to obtain providers in the current module (except itself) or exported providers in other imported modules.
Basic
final Provider<String> hello = (ref) => 'Hello';
final Provider<String> world = (ref) async => '${await ref(hello)} World!';
final module = Module(
providers: { hello, world },
);
Constructors
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
-
call<
T> (Provider< T> provider) → FutureOr<T> - Returns a provider result from the current module.
-
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