removeAnalysisOptions method

Future<void> removeAnalysisOptions({
  1. required HookContext context,
  2. required String projectPath,
})

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(),
    );