failure property

NativeCodeError? get failure

The event's error, mapped to the library's single public error type (NativeCodeError), or null when the event carries no error.

Implementation

NativeCodeError? get failure =>
    error == null ? null : NativeCodeError.fromNativeError(error!);