# AutowireMode enum

Defines strategies for automatically wiring dependencies in a system.

Each mode indicates how a dependency should be resolved and injected into a class or component.

### Example

    void configurePod(AutowireMode mode) {
      switch (mode) {
        case AutowireMode.NO:
          print("No autowiring will be applied.");
          break;
        case AutowireMode.BY_NAME:
          print("Dependencies will be autowired by matching names.");
          break;
        case AutowireMode.BY_TYPE:
          print("Dependencies will be autowired by matching types.");
          break;
      }
    }

Inheritance
  - Object
  - Enum
  - AutowireMode
Available extensions
  - EnumName

## Values

NO → const AutowireMode

  No autowiring is applied. All dependencies must be explicitly configured.

  `const AutowireMode(0)`
BY_NAME → const AutowireMode

  Autowires dependencies by matching their names.

  `const AutowireMode(1)`
BY_TYPE → const AutowireMode

  Autowires dependencies by matching their types.

  `const AutowireMode(2)`

## Properties

hashCode → int
  The hash code for this object.
  no setter inherited
index → int
  A numeric identifier for the enumerated value.
  no setter inherited
name → String

  Available on Enum, provided by the EnumName extension

  The name of the enum value.
  no setter
runtimeType → Type
  A representation of the runtime type of the object.
  no setter inherited
value → int
  Numeric representation of the mode for easier serialization or mapping.
  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

## Static Methods

fromValue(int value) → AutowireMode
  Returns the AutowireMode that corresponds to the given integer `value`.
valueOf(String name) → AutowireMode
  Returns the AutowireMode that matches the given `name`.

## Constants

values → const List<AutowireMode>
  A constant List of the values in this enum, in order of their declaration.