MatchDataSend constructor

MatchDataSend({
  1. String? matchId,
  2. Int64? opCode,
  3. List<int>? data,
  4. Iterable<UserPresence>? presences,
  5. bool? reliable,
})

Implementation

factory MatchDataSend({
  $core.String? matchId,
  $fixnum.Int64? opCode,
  $core.List<$core.int>? data,
  $core.Iterable<UserPresence>? presences,
  $core.bool? reliable,
}) {
  final _result = create();
  if (matchId != null) {
    _result.matchId = matchId;
  }
  if (opCode != null) {
    _result.opCode = opCode;
  }
  if (data != null) {
    _result.data = data;
  }
  if (presences != null) {
    _result.presences.addAll(presences);
  }
  if (reliable != null) {
    _result.reliable = reliable;
  }
  return _result;
}