updateAutoGenerateDictionary method

Future<CatalogConfig> updateAutoGenerateDictionary(
  1. bool value
)

Implementation

Future<CatalogConfig> updateAutoGenerateDictionary(bool value) async {
  final updatedConfig = config.copyWith(autoGenerateDictionary: value);
  final configPath = PathUtils.join(projectRootPath, CatalogConfig.defaultConfigPath);
  await CatalogConfig.writeConfig(
    path: configPath,
    config: updatedConfig,
  );
  config = updatedConfig;
  return updatedConfig;
}