XVideoPlayerValue constructor
const
XVideoPlayerValue({
- bool isInitialized = false,
- bool isPlaying = false,
- bool isBuffering = false,
- bool isLooping = false,
- int rotationQuarterTurns = 0,
- Duration position = Duration.zero,
- Duration duration = Duration.zero,
- Size size = Size.zero,
- double volume = 1.0,
- double playbackSpeed = 1.0,
- List<
XDurationRange> buffered = const [], - String? errorDescription,
Binds a full state snapshot; every field defaults to its pre-initialize value.
Implementation
const XVideoPlayerValue({
this.isInitialized = false,
this.isPlaying = false,
this.isBuffering = false,
this.isLooping = false,
this.rotationQuarterTurns = 0,
this.position = Duration.zero,
this.duration = Duration.zero,
this.size = Size.zero,
this.volume = 1.0,
this.playbackSpeed = 1.0,
this.buffered = const [],
this.errorDescription,
});