VideoEvent constructor

VideoEvent({
  1. required VideoEventType eventType,
  2. required String? key,
  3. Duration? duration,
  4. Size? size,
  5. List<DurationRange>? buffered,
  6. Duration? position,
})

Creates an instance of VideoEvent.

The eventType argument is required.

Depending on the eventType, the duration, size and buffered arguments can be null.

Implementation

VideoEvent({
  required this.eventType,
  required this.key,
  this.duration,
  this.size,
  this.buffered,
  this.position,
});