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 MethodCall call = codec.decodeMethodCall(data);
  return ChannelInfo(name, call.method, call.arguments,
      send ? ChannelInfo.TYPE_SYSTEM_SEND : ChannelInfo.TYPE_SYSTEM_RECEIVE)
    ..methodCodec = codec;
}