VideoEvent constructor

VideoEvent({
  1. required VideoEventType eventType,
  2. DurationRange? duration,
  3. Size? size,
  4. int? buffered,
  5. String? text,
  6. int? textDuration,
  7. bool? isPlaying,
  8. List? subtitleAttributes,
  9. Map<Object?, Object?>? adInfo,
  10. String? manifestInfo,
})

Creates an instance of VideoEvent.

The eventType argument is required.

Depending on the eventType, the duration, size 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.buffered,
  this.text,
  this.textDuration,
  this.isPlaying,
  this.subtitleAttributes,
  this.adInfo,
  this.manifestInfo,
});