VoiceParticipant class

One participant's state within a `Room`. Every toggle is `OnOff` rather than bool: this is the same distinction clippy's own struct_excessive_bools lint asks for (six independent flags read equally well as a state machine's cases), and reusing OnOff rather than inventing six near-identical two-variant enums keeps it to one type.

Constructors

VoiceParticipant({required String nick, required VoiceRole role, required OnOff mic, required OnOff video, required OnOff speaking, required OnOff deaf, required OnOff screen, required OnOff hand})
const
VoiceParticipant.fromJson(Map<String, dynamic> json)
factory

Properties

deaf OnOff
Not receiving room audio.
final
hand OnOff
Hand raised.
final
hashCode int
The hash code for this object.
no setterinherited
mic OnOff
Microphone on.
final
nick String
Their nick as the server spells it, since the map that holds them is keyed by a fold that throws that spelling away.
final
role VoiceRole
Whether they may publish, decided by the room kind and, in a $ room, whether the server named them a streamer.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screen OnOff
Screen share active.
final
speaking OnOff
The voice-activity flag the last presence reported.
final
video OnOff
Camera on.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited