RpcNetworkerPacket.named constructor

RpcNetworkerPacket.named({
  1. required RpcFunctionName name,
  2. required Uint8List data,
  3. Channel channel = kAnyChannel,
})

Implementation

RpcNetworkerPacket.named({
  required RpcFunctionName name,
  required this.data,
  this.channel = kAnyChannel,
}) : function = name.index;