PlatformException constructor
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.
Implementation
PlatformException({
required this.code,
this.message,
this.details,
this.stacktrace,
});