VideoEvent constructor
VideoEvent({
- required VideoEventType eventType,
- Duration? duration,
- Duration position = Duration.zero,
- Size? size,
- double? bufferPercent = 0,
- double? bufferPosition = 0,
- PlayerState state = PlayerState.idle,
Creates an instance of VideoEvent.
The eventType
argument is required.
Depending on the eventType
, the duration
, size
.
Implementation
// 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.position = Duration.zero,
this.size,
this.bufferPercent = 0,
this.bufferPosition = 0,
this.state = PlayerState.idle});