saveLog static method
Implementation
static Future<void> saveLog(final String message) async {
final ReceivePort receivePort = ReceivePort();
await Isolate.spawn(writeLog, message);
// wait for the isolate to finish it's last task
await receivePort.first;
}