VideoPlayerValue class

Constructors

VideoPlayerValue({@required Duration duration, Size size, Duration position: const Duration(), List<DurationRange> buffered: const [], bool isPlaying: false, bool isLooping: false, bool isLoading: false, bool isBuffering: false, double volume: 1.0, String errorDescription, Source source, int currentIndex: 0, bool isFullScreen: false})
VideoPlayerValue.erroneous(String errorDescription, Source source, int currentIndex)
VideoPlayerValue.uninitialized()

Properties

aspectRatio double
read-only
buffered List<DurationRange>
The currently buffered ranges.
final
currentIndex int
final
duration Duration
The total duration of the video. [...]
final
errorDescription String
A description of the error if present. [...]
final
getCurrrentMediaFile MediaFile
read-only
hasError bool
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
initialized bool
read-only
isBuffering bool
True if the video is currently buffering.
final
isFullScreen bool
final
isLoading bool
final
isLooping bool
True if the video is looping.
final
isPlaying bool
True if the video is playing. False if it's paused.
final
next bool
read-only
position Duration
The current playback position.
final
prev bool
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
size Size
The size of the currently loaded video. [...]
final
source Source
final
volume double
The current volume of the playback.
final

Methods

copyWith({Duration duration, Size size, Duration position, List<DurationRange> buffered, bool isPlaying, bool isLooping, bool isBuffering, bool isLoading, Source source, int currentIndex, bool isFullScreen, double volume, String errorDescription}) VideoPlayerValue
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
override

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited