PlatformException class Null safety

Thrown to indicate that a platform interaction failed in the platform plugin.

See also:

Implemented types

Constructors

PlatformException({required String code, String? message, dynamic details, String? stacktrace})
Creates a PlatformException with the specified error code and optional message, and with the optional error details which must be a valid value for the MethodCodec involved in the interaction.

Properties

code String
An error code.
final
details → dynamic
Error details, possibly null. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
message String?
A human-readable error message, possibly null.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stacktrace String?
Native stacktrace for the error, possibly null. [...]
final

Methods

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

Operators

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