VideoEvent constructor
VideoEvent({
- required VideoEventType eventType,
- Duration? duration,
- Size? size,
- int? rotationCorrection,
- List<
DurationRange> ? buffered, - bool? isPlaying,
Creates an instance of VideoEvent.
The eventType argument is required.
Depending on the eventType, the duration, size, rotationCorrection, and buffered arguments can be null.
Implementation
// TODO(stuartmorgan): Temporarily suppress warnings about not using const
// in all of the other video player packages, fix this, and then update
// the other packages to use const.
// ignore: prefer_const_constructors_in_immutables
VideoEvent({
required this.eventType,
this.duration,
this.size,
this.rotationCorrection,
this.buffered,
this.isPlaying,
});