copyLogTo static method
Copies the current plain-text log file to destFile (useful for export)
Example usage from UI: copyTo(File('/storage/emulated/0/Download/mobigic_export.txt'))
Implementation
static Future<File?> copyLogTo(File destFile) async {
if (!_initialized) await ensureInitialized();
if (_textLogFile == null) return null;
try {
return await _textLogFile!.copy(destFile.path);
} catch (e) {
return null;
}
}