saveLog static method

Future<void> saveLog(
  1. String message
)

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;
}