VideoPlayerValue constructor
VideoPlayerValue({
- required Duration? duration,
- Size? size,
- Duration position = const Duration(),
- DateTime? absolutePosition,
- List<
DurationRange> buffered = const <DurationRange>[], - bool isPlaying = false,
- bool isLooping = false,
- bool isBuffering = false,
- double volume = 1.0,
- double speed = 1.0,
- String? errorDescription,
- bool isPip = false,
Constructs a video with the given values. Only duration
is required. The
rest will initialize with default values when unset.
Implementation
VideoPlayerValue({
required this.duration,
this.size,
this.position = const Duration(),
this.absolutePosition,
this.buffered = const <DurationRange>[],
this.isPlaying = false,
this.isLooping = false,
this.isBuffering = false,
this.volume = 1.0,
this.speed = 1.0,
this.errorDescription,
this.isPip = false,
});