encodeErrorEnvelope method

ByteData encodeErrorEnvelope ({@required String code, String message, dynamic details })

Encodes an error result into a binary envelope.

The specified error code, human-readable error message, and error details correspond to the fields of PlatformException.

Implementation

ByteData encodeErrorEnvelope({ @required String code, String message, dynamic details });