MediaState class Null safety
Keeps the information about the state of media features (audio, video, screen sharing)
This media state can be a remote participant's media state or your local media state This class is used for both
Constructors
- MediaState(bool _isSharingVideo, bool _isSharingAudio, bool _isSharingScreen)
- Default constructor sets all media features
- MediaState.stopped()
-
Factory constructor that just makes new empty instance with all media features (audio, video, screen sharing) marked as stopped
factory
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- isSharingAudio → bool
-
Whether audio is being shared
read-only
- isSharingScreen → bool
-
Whether screen sharing is on
read-only
- isSharingVideo → bool
-
Whether video from camera is being shared
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited