encodeMethodCall method Null safety

  1. @override
ByteData encodeMethodCall(
  1. MethodCall call
)
override

Encodes the specified methodCall into binary.

Implementation

@override
ByteData encodeMethodCall(MethodCall call) {
  final WriteBuffer buffer = WriteBuffer();
  messageCodec.writeValue(buffer, call.method);
  messageCodec.writeValue(buffer, call.arguments);
  return buffer.done();
}