Envelope constructor

Envelope({
  1. String? cid,
  2. Channel? channel,
  3. ChannelJoin? channelJoin,
  4. ChannelLeave? channelLeave,
  5. ChannelMessage? channelMessage,
  6. ChannelMessageAck? channelMessageAck,
  7. ChannelMessageSend? channelMessageSend,
  8. ChannelMessageUpdate? channelMessageUpdate,
  9. ChannelMessageRemove? channelMessageRemove,
  10. ChannelPresenceEvent? channelPresenceEvent,
  11. Error? error,
  12. Match? match,
  13. MatchCreate? matchCreate,
  14. MatchData? matchData,
  15. MatchDataSend? matchDataSend,
  16. MatchJoin? matchJoin,
  17. MatchLeave? matchLeave,
  18. MatchPresenceEvent? matchPresenceEvent,
  19. MatchmakerAdd? matchmakerAdd,
  20. MatchmakerMatched? matchmakerMatched,
  21. MatchmakerRemove? matchmakerRemove,
  22. MatchmakerTicket? matchmakerTicket,
  23. Notifications? notifications,
  24. Rpc? rpc,
  25. Status? status,
  26. StatusFollow? statusFollow,
  27. StatusPresenceEvent? statusPresenceEvent,
  28. StatusUnfollow? statusUnfollow,
  29. StatusUpdate? statusUpdate,
  30. StreamData? streamData,
  31. StreamPresenceEvent? streamPresenceEvent,
  32. Ping? ping,
  33. Pong? pong,
  34. Party? party,
  35. PartyCreate? partyCreate,
  36. PartyJoin? partyJoin,
  37. PartyLeave? partyLeave,
  38. PartyPromote? partyPromote,
  39. PartyLeader? partyLeader,
  40. PartyAccept? partyAccept,
  41. PartyRemove? partyRemove,
  42. PartyClose? partyClose,
  43. PartyJoinRequestList? partyJoinRequestList,
  44. PartyJoinRequest? partyJoinRequest,
  45. PartyMatchmakerAdd? partyMatchmakerAdd,
  46. PartyMatchmakerRemove? partyMatchmakerRemove,
  47. PartyMatchmakerTicket? partyMatchmakerTicket,
  48. PartyData? partyData,
  49. PartyDataSend? partyDataSend,
  50. PartyPresenceEvent? partyPresenceEvent,
})

Implementation

factory Envelope({
  $core.String? cid,
  Channel? channel,
  ChannelJoin? channelJoin,
  ChannelLeave? channelLeave,
  $2.ChannelMessage? channelMessage,
  ChannelMessageAck? channelMessageAck,
  ChannelMessageSend? channelMessageSend,
  ChannelMessageUpdate? channelMessageUpdate,
  ChannelMessageRemove? channelMessageRemove,
  ChannelPresenceEvent? channelPresenceEvent,
  Error? error,
  Match? match,
  MatchCreate? matchCreate,
  MatchData? matchData,
  MatchDataSend? matchDataSend,
  MatchJoin? matchJoin,
  MatchLeave? matchLeave,
  MatchPresenceEvent? matchPresenceEvent,
  MatchmakerAdd? matchmakerAdd,
  MatchmakerMatched? matchmakerMatched,
  MatchmakerRemove? matchmakerRemove,
  MatchmakerTicket? matchmakerTicket,
  Notifications? notifications,
  $2.Rpc? rpc,
  Status? status,
  StatusFollow? statusFollow,
  StatusPresenceEvent? statusPresenceEvent,
  StatusUnfollow? statusUnfollow,
  StatusUpdate? statusUpdate,
  StreamData? streamData,
  StreamPresenceEvent? streamPresenceEvent,
  Ping? ping,
  Pong? pong,
  Party? party,
  PartyCreate? partyCreate,
  PartyJoin? partyJoin,
  PartyLeave? partyLeave,
  PartyPromote? partyPromote,
  PartyLeader? partyLeader,
  PartyAccept? partyAccept,
  PartyRemove? partyRemove,
  PartyClose? partyClose,
  PartyJoinRequestList? partyJoinRequestList,
  PartyJoinRequest? partyJoinRequest,
  PartyMatchmakerAdd? partyMatchmakerAdd,
  PartyMatchmakerRemove? partyMatchmakerRemove,
  PartyMatchmakerTicket? partyMatchmakerTicket,
  PartyData? partyData,
  PartyDataSend? partyDataSend,
  PartyPresenceEvent? partyPresenceEvent,
}) {
  final _result = create();
  if (cid != null) {
    _result.cid = cid;
  }
  if (channel != null) {
    _result.channel = channel;
  }
  if (channelJoin != null) {
    _result.channelJoin = channelJoin;
  }
  if (channelLeave != null) {
    _result.channelLeave = channelLeave;
  }
  if (channelMessage != null) {
    _result.channelMessage = channelMessage;
  }
  if (channelMessageAck != null) {
    _result.channelMessageAck = channelMessageAck;
  }
  if (channelMessageSend != null) {
    _result.channelMessageSend = channelMessageSend;
  }
  if (channelMessageUpdate != null) {
    _result.channelMessageUpdate = channelMessageUpdate;
  }
  if (channelMessageRemove != null) {
    _result.channelMessageRemove = channelMessageRemove;
  }
  if (channelPresenceEvent != null) {
    _result.channelPresenceEvent = channelPresenceEvent;
  }
  if (error != null) {
    _result.error = error;
  }
  if (match != null) {
    _result.match = match;
  }
  if (matchCreate != null) {
    _result.matchCreate = matchCreate;
  }
  if (matchData != null) {
    _result.matchData = matchData;
  }
  if (matchDataSend != null) {
    _result.matchDataSend = matchDataSend;
  }
  if (matchJoin != null) {
    _result.matchJoin = matchJoin;
  }
  if (matchLeave != null) {
    _result.matchLeave = matchLeave;
  }
  if (matchPresenceEvent != null) {
    _result.matchPresenceEvent = matchPresenceEvent;
  }
  if (matchmakerAdd != null) {
    _result.matchmakerAdd = matchmakerAdd;
  }
  if (matchmakerMatched != null) {
    _result.matchmakerMatched = matchmakerMatched;
  }
  if (matchmakerRemove != null) {
    _result.matchmakerRemove = matchmakerRemove;
  }
  if (matchmakerTicket != null) {
    _result.matchmakerTicket = matchmakerTicket;
  }
  if (notifications != null) {
    _result.notifications = notifications;
  }
  if (rpc != null) {
    _result.rpc = rpc;
  }
  if (status != null) {
    _result.status = status;
  }
  if (statusFollow != null) {
    _result.statusFollow = statusFollow;
  }
  if (statusPresenceEvent != null) {
    _result.statusPresenceEvent = statusPresenceEvent;
  }
  if (statusUnfollow != null) {
    _result.statusUnfollow = statusUnfollow;
  }
  if (statusUpdate != null) {
    _result.statusUpdate = statusUpdate;
  }
  if (streamData != null) {
    _result.streamData = streamData;
  }
  if (streamPresenceEvent != null) {
    _result.streamPresenceEvent = streamPresenceEvent;
  }
  if (ping != null) {
    _result.ping = ping;
  }
  if (pong != null) {
    _result.pong = pong;
  }
  if (party != null) {
    _result.party = party;
  }
  if (partyCreate != null) {
    _result.partyCreate = partyCreate;
  }
  if (partyJoin != null) {
    _result.partyJoin = partyJoin;
  }
  if (partyLeave != null) {
    _result.partyLeave = partyLeave;
  }
  if (partyPromote != null) {
    _result.partyPromote = partyPromote;
  }
  if (partyLeader != null) {
    _result.partyLeader = partyLeader;
  }
  if (partyAccept != null) {
    _result.partyAccept = partyAccept;
  }
  if (partyRemove != null) {
    _result.partyRemove = partyRemove;
  }
  if (partyClose != null) {
    _result.partyClose = partyClose;
  }
  if (partyJoinRequestList != null) {
    _result.partyJoinRequestList = partyJoinRequestList;
  }
  if (partyJoinRequest != null) {
    _result.partyJoinRequest = partyJoinRequest;
  }
  if (partyMatchmakerAdd != null) {
    _result.partyMatchmakerAdd = partyMatchmakerAdd;
  }
  if (partyMatchmakerRemove != null) {
    _result.partyMatchmakerRemove = partyMatchmakerRemove;
  }
  if (partyMatchmakerTicket != null) {
    _result.partyMatchmakerTicket = partyMatchmakerTicket;
  }
  if (partyData != null) {
    _result.partyData = partyData;
  }
  if (partyDataSend != null) {
    _result.partyDataSend = partyDataSend;
  }
  if (partyPresenceEvent != null) {
    _result.partyPresenceEvent = partyPresenceEvent;
  }
  return _result;
}