RemoteParticipantState class
Snapshot of a remote participant's state.
Constructors
-
RemoteParticipantState({required String id, required String displayName, required String state, required bool isMuted, required bool isSpeaking, required List<
RemoteVideoInfo> videoStreams, bool isVideoRendering = false}) -
const
-
RemoteParticipantState.fromMap(Map<
String, dynamic> map) -
factory
Properties
- displayName → String
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
final
- isMuted → bool
-
final
- isSpeaking → bool
-
final
- isVideoRendering → bool
-
Whether the participant's video tile has painted its first frame.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → String
-
final
-
videoStreams
→ List<
RemoteVideoInfo> -
final
Methods
-
copyWith(
{String? id, String? displayName, String? state, bool? isMuted, bool? isSpeaking, List< RemoteVideoInfo> ? videoStreams, bool? isVideoRendering}) → RemoteParticipantState - Returns a copy with the given fields replaced, preserving immutability.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
Value equality (deep, including the video-stream list) so a re-emitted
participant snapshot with unchanged content compares equal. This lets the
call state's equality check dedup repeated participant/dominant-speaker
events instead of rebuilding the video grid — and re-creating native video
renderers — on every event. RemoteVideoInfo provides element equality.
override