fixGenerators property
Fix producer generators for this rule.
Override to provide quick fixes that appear in the IDE lightbulb menu.
Each generator is a factory function that creates a SaropaFixProducer.
Registered with the analysis server at plugin initialization via
registry.registerFixForRule(code, generator).
Example:
@override
List<SaropaFixGenerator> get fixGenerators => [
({required CorrectionProducerContext context}) =>
MyFix(context: context),
];
Default: empty (no custom fixes). Note that ignore-comment fixes are provided automatically by the native analysis server framework.
Implementation
@override
List<SaropaFixGenerator> get fixGenerators => [
({required CorrectionProducerContext context}) =>
_PreferDropdownInitialValueFix(context: context),
];