Participants constructor
const
Participants({
- required Participant local,
- @Default({}) @JsonKey(toJson: _participantMapToJson, fromJson: _participantMapFromJson) Map<
ParticipantId, Participant> remote, - @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;