analysisOptions method

  1. @override
Future<Either<Failure, Unit>> analysisOptions()
override

Implementation

@override
Future<Either<Failure, Unit>> analysisOptions() {
  return trying(() async {
    const yamlPath = 'analysis_options.yaml';
    final content = await dataSource.analysisOptionsContent();
    await fileManager.generatePath(yamlPath, forceGenerate: true);
    await fileManager.write(yamlPath, content);
  });
}