Inject class
Responsável por indicar que determinado atributo da classe deverá realizar a injeção de dependência.
nameSetter O nome do método setq ue o plugin precisará invocar para realizar a injeção.
type Caso deseje utilizar o princípio da inversão de dependência, passe o tipo da classe que você deseja que o plugin cria uma nova instância.
Constructors
- Inject.new({required String nameSetter, Type? type})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- nameSetter → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → Type?
-
final
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