DependencyRequest class
A request for a dependency, declared by a command's handler (FR-007).
The handler binds its dependencies through a DiBinding rather than reaching into a global singleton, so the same SharedCommand can run in different apps with different DI configurations.
Constructors
- DependencyRequest({required String name, required Type expectedType})
-
const
Properties
- expectedType → Type
-
The expected runtime type of the dependency, for runtime validation.
Mismatches between the declared and the actual type throw
BindingException.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name the handler uses to look up the dependency in the host's DI.
For GetIt, this is the type name (e.g.
'UserRepository').final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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