decodeMethod method

IInfo decodeMethod(
  1. String name,
  2. ByteData? data,
  3. MethodCodec codec,
  4. bool send,
)

Implementation

IInfo decodeMethod(
    String name, ByteData? data, MethodCodec codec, bool send) {
  final call = codec.decodeMethodCall(data);
  return ChannelInfo(name, call.method, call.arguments,
      send ? ChannelInfo.typeSystemSend : ChannelInfo.typeSystemReceive)
    ..methodCodec = codec;
}