createAnalysisOptionsFile method
void
createAnalysisOptionsFile({
- List<
String> includes = const [], - List<
Feature> ? experimentalFeatures, - List<
String> legacyPlugins = const [], - List<
String> cannotIgnore = const [], - List<
String> lints = const [], - Map<
String, Object?> errors = const {}, - bool propagateLinterExceptions = true,
- bool strictCasts = false,
- bool strictInference = false,
- bool strictRawTypes = false,
inherited
Create an analysis options file based on the given arguments.
Implementation
void createAnalysisOptionsFile({
List<String> includes = const [],
List<Feature>? experimentalFeatures,
List<String> legacyPlugins = const [],
List<String> cannotIgnore = const [],
List<String> lints = const [],
Map<String, Object?> errors = const {},
bool propagateLinterExceptions = true,
bool strictCasts = false,
bool strictInference = false,
bool strictRawTypes = false,
}) {
writeAnalysisOptionsFile(
analysisOptionsContent(
includes: includes,
experimentalFeatures: experimentalFeatures ?? this.experimentalFeatures,
legacyPlugins: legacyPlugins,
propagateLinterExceptions: propagateLinterExceptions,
rules: lints,
errors: errors,
unignorableNames: cannotIgnore,
strictCasts: strictCasts,
strictInference: strictInference,
strictRawTypes: strictRawTypes,
),
);
}