Thrown to indicate that a platform interaction failed in the platform plugin.
- MethodCodec, which throws a PlatformException, if a received result envelope represents an error.
- MethodChannel.invokeMethod, which completes the returned future with a PlatformException, if invoking the platform plugin method results in an error envelope.
- EventChannel.receiveBroadcastStream, which emits PlatformExceptions as error events, whenever an event received from the platform plugin is wrapped in an error envelope.
- code → String
An error code.
- details → dynamic
Error details, possibly null.
- message → String
A human-readable error message, possibly null.
- hashCode → int
The hash code for this object. [...]
- runtimeType → Type
A representation of the runtime type of the object.