writeToFile method

Future<void> writeToFile(
  1. String filePath
)

Write the configuration to a file

Implementation

Future<void> writeToFile(String filePath) async {
  try {
    final file = File(filePath);
    await file.writeAsString(toIniString());
  } catch (e) {
    throw Exception('Failed to write LSL configuration to file: $e');
  }
}