PlayerState class

PlayerState

Instantaneous state of the Player.

Constructors

PlayerState({bool playing = false, Duration position = Duration.zero, int? width, int? height, List<String> subtitle = const ['', ''], bool buffering = false, Duration buffer = Duration.zero, Duration duration = Duration.zero, double volume = 1.0, double rate = 1.0, bool completed = false})
PlayerState
const

Properties

buffer Duration
Current buffer duration.
final
buffering bool
Whether buffering or not.
final
completed bool
Whether playback is completed or not.
final
duration Duration
Duration of the media.
final
hashCode int
The hash code for this object.
no setterinherited
height int?
Currently playing video's height.
final
playing bool
Whether playing or not.
final
position Duration
Current playback position.
final
rate double
Current playback rate.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtitle List<String>
Currently displayed subtitle.
final
volume double
Current volume.
final
width int?
Currently playing video's width.
final

Methods

copyWith({bool? playing, Duration? position, int? width, int? height, List<String>? subtitle, bool? buffering, Duration? buffer, Duration? duration, double? volume, double? rate, bool? completed}) PlayerState
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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