PlayerState class
- Annotations
-
- @freezed
Constructors
- PlayerState({required String playerId, MediaItem? currentMediaItem, VideoSize? videoSize, int? playbackPositionMs, @Default(1.0) double playbackSpeed, @Default(false) bool isNativeFullscreen, @Default(PlaybackState.stopped) PlaybackState playbackState, @Default(false) bool isBuffering, @Default(false) bool isInPipMode, @Default(false) bool isInitialized})
-
constfactory
- PlayerState.fromPlayerStateSnapshot(PlayerStateSnapshot state)
-
factory
Properties
-
copyWith
→ $PlayerStateCopyWith<
PlayerState> -
no setterinherited
- currentMediaItem → MediaItem?
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBuffering → bool
-
no setterinherited
- isInitialized → bool
-
no setterinherited
- isInPipMode → bool
-
no setterinherited
- isNativeFullscreen → bool
-
no setterinherited
- playbackPositionMs → int?
-
no setterinherited
- playbackSpeed → double
-
no setterinherited
- playbackState → PlaybackState
-
no setterinherited
- playerId → String
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- videoSize → VideoSize?
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited