StandardMethodCodec class

MethodCodec using the Flutter standard binary encoding.

The standard codec is guaranteed to be compatible with the corresponding standard codec for FlutterMethodChannels on the host platform. These parts of the Flutter SDK are evolved synchronously.

Values supported as method arguments and result payloads are those supported by StandardMessageCodec.

Implemented types

Constructors

StandardMethodCodec([StandardMessageCodec messageCodec = const StandardMessageCodec() ])
Creates a MethodCodec using the Flutter standard binary encoding.
const

Properties

messageCodec StandardMessageCodec
The message codec that this method codec uses for encoding values.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

decodeEnvelope(ByteData envelope) → dynamic
Decodes the specified result envelope from binary. [...]
override
decodeMethodCall(ByteData methodCall) MethodCall
Decodes the specified methodCall from binary.
override
encodeErrorEnvelope({String code, String message, dynamic details }) ByteData
Encodes an error result into a binary envelope. [...]
override
encodeMethodCall(MethodCall call) ByteData
Encodes the specified methodCall into binary.
override
encodeSuccessEnvelope(dynamic result) ByteData
Encodes a successful result into a binary envelope.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

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