removeAnalysisOptions method
Remove the generated analysis_options.yaml file from a Flutter project
context
- The Mason hook context
projectPath
- Path to the Flutter project
Implementation
Future<void> removeAnalysisOptions({
required HookContext context,
required String projectPath,
}) =>
trackOperation(
context,
startMessage: 'Removing analysis_options.yaml',
endMessage: 'analysis_options.yaml removed',
operation: () =>
File(p.normalize('$projectPath/analysis_options.yaml')).delete(),
);