Inject class
Annotation to inject a dependency
Used to mark fields for automatic dependency injection.
Example:
@Inject()
late AuthService authService;
@Inject('custom_key')
late ApiClient api;
Properties
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