Participants constructor

const Participants({
  1. required Participant local,
  2. @Default({}) @JsonKey(toJson: _participantMapToJson, fromJson: _participantMapFromJson) Map<ParticipantId, Participant> remote,
  3. @Default({}) @JsonKey(toJson: _participantMapToJson, fromJson: _participantMapFromJson) Map<ParticipantId, Participant> all,
})

Implementation

const factory Participants({
  /// The local participant.
  required Participant local,

  /// The set of remote participants (excluding the local participant).
  @Default({})
  @JsonKey(toJson: _participantMapToJson, fromJson: _participantMapFromJson)
      Map<ParticipantId, Participant> remote,

  /// The set of all participants (including the local participant).
  @Default({})
  @JsonKey(toJson: _participantMapToJson, fromJson: _participantMapFromJson)
      Map<ParticipantId, Participant> all,
}) = _Participants;