encodeMethodCall method

  1. @override
ByteData encodeMethodCall (MethodCall call)
override

Encodes the specified methodCall into binary.

Implementation

@override
ByteData encodeMethodCall(MethodCall call) {
  return const JSONMessageCodec().encodeMessage(<String, dynamic>{
    'method': call.method,
    'args': call.arguments,
  });
}