getErrorMessage static method

String getErrorMessage(
  1. int code
)

Get error message for an error code.

Implementation

static String getErrorMessage(int code) {
  if (_lib == null) {
    return RacResultCode.getMessage(code);
  }
  _bindCoreFunctions();
  final ptr = _racErrorMessage!(code);
  if (ptr == nullptr) {
    return RacResultCode.getMessage(code);
  }
  return ptr.toDartString();
}