writeTOMLAsync function

Future<void> writeTOMLAsync(
  1. Map<String, dynamic> config,
  2. String TOMLPath
)

Implementation

Future<void> writeTOMLAsync(
    Map<String, dynamic> config, String TOMLPath) async {
  String toml = TomlDocument.fromMap(config).toString();
  await File(TOMLPath).writeAsString(toml);
}