saveToFile method

Future<void> saveToFile(
  1. dynamic _
)

Saves all the logs in saveToFileBuffer to disk.

Implementation

Future<void> saveToFile(_) async {
  if (saveToFileBuffer.isEmpty) return;
  for (final log in List<BurtLog>.from(saveToFileBuffer)) {
    await services.files.logMessage(log);
  }
  saveToFileBuffer.clear();
}