NativeCodeError class

An error raised in the native layer of the library.

Implemented types

Constructors

NativeCodeError({required String domain, required int code, required String description})
NativeCodeError.fromNativeError(NativeError e)
Maps the wire-level NativeError carried by an AccessoryEvent onto the library's single public error type.
factory
NativeCodeError.fromPlatformException(PlatformException e)
Builds a NativeCodeError from a Pigeon PlatformException. The native layer encodes the NSError as code (numeric string), message (localized description) and details (domain).
factory

Properties

code int
final
description String
final
domain String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited