updateDartToolVaniaConfig function

Future<void> updateDartToolVaniaConfig(
  1. Map<String, dynamic> config
)

Implementation

Future<void> updateDartToolVaniaConfig(Map<String, dynamic> config) async {
  try {
    final configFile = await getDartToolVaniaConfigFile();
    if (configFile != null) {
      await configFile.writeAsString(jsonEncode(config));
    }
  } catch (_) {}
}