writeText method
Write logs to the file
Defaults to .dart_tools/fgen_log.txt
Implementation
void writeText(Object text, {File? file}) {
file ??= logFile;
if (!file.existsSync()) {
file.createSync(recursive: true);
}
file
..writeAsStringSync(DateTime.now().toString(), mode: FileMode.append)
..writeAsStringSync(' : $text', mode: FileMode.append)
..writeAsStringSync('\n', mode: FileMode.append);
}