MatchData constructor

const MatchData({
  1. required String matchId,
  2. required UserPresence presence,
  3. required int opCode,
  4. required List<int> data,
  5. required bool reliable,
})

Implementation

const factory MatchData({
  /// The match unique ID.
  required String matchId,

  /// A reference to the user presence that sent this data, if any.
  required UserPresence presence,

  /// Op code value.
  required int opCode,

  /// Data payload, if any.
  required List<int> data,

  /// True if this data was delivered reliably, false otherwise.
  required bool reliable,
}) = _MatchData;