lastError static method

String lastError()

The current thread's last error message.

Implementation

static String lastError() {
  final pointer = _rvaLastError();
  if (pointer == nullptr) return 'unknown error';
  return pointer.toDartString();
}