writeConfig method

void writeConfig(
  1. 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');
}