encodeMethodCall method Null safety

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

Encodes the specified methodCall into binary.

Implementation

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