InjectService<S extends MomentumService> class
Use this class to inject multiple services of the same type with different configurations using alias.
- Inheritance
-
- Object
- MomentumService
- InjectService
Constructors
- InjectService(dynamic alias, S service)
- Use this class to inject multiple services of the same type with different configurations using alias.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → S
-
The service instance attached to this injector.
no setter
Methods
-
getService<
T extends MomentumService> ({bool runtimeType = true, dynamic alias}) → T -
A method for getting a service marked with
MomentumService that are injected into
Momentum root widget.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
service<
T extends MomentumService> ({dynamic alias}) → T -
A method for getting a service marked with
MomentumService that are injected into
Momentum root widget.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited