# AutowireCandidateDescriptor constructor

AutowireCandidateDescriptor({

1. required bool autowireCandidate,
2. required AutowireMode autowireMode,

})

Creates an AutowireCandidateDescriptor with the given `autowireCandidate` flag and `autowireMode`.

Describes whether a component is eligible for autowiring.

Autowiring automatically injects dependencies into a component. This descriptor includes a flag indicating if the component is an autowire candidate, and the AutowireMode to use.
See {@macro autowire_mode}.

### Example

    final candidate = AutowireCandidateDescriptor(
      autowireCandidate: true,
      autowireMode: AutowireMode.BY_TYPE,
    );

    print(candidate.autowireCandidate); // true
    print(candidate.autowireMode); // AutowireMode.BY_TYPE

## Implementation

    AutowireCandidateDescriptor({
      required this.autowireCandidate,
      required this.autowireMode,
    });