writeConfig method
- String text
Write wslconfig file
Implementation
void writeConfig(String text) async {
File file = File(getWslConfigPath());
if (!file.existsSync()) {
file.createSync();
}
file.writeAsStringSync('[wsl2]\n\n$text');
}
Write wslconfig file
void writeConfig(String text) async {
File file = File(getWslConfigPath());
if (!file.existsSync()) {
file.createSync();
}
file.writeAsStringSync('[wsl2]\n\n$text');
}