PlayerEvent constructor

const PlayerEvent({
  1. @Default(false) bool isBuffering,
  2. @Default(false) bool isPlaying,
  3. @Default(false) bool isPlayingAd,
  4. @Default(false) bool isReady,
  5. @Default(false) bool isEnded,
  6. @Default(0.0) double volume,
  7. @Default(Size.zero) Size size,
  8. @Default(Duration.zero) Duration duration,
  9. @Default(Duration.zero) Duration bufferedDuration,
})

Implementation

const factory PlayerEvent({
  @Default(false) bool isBuffering,
  @Default(false) bool isPlaying,
  @Default(false) bool isPlayingAd,
  @Default(false) bool isReady,
  @Default(false) bool isEnded,
  @Default(0.0) double volume,
  @Default(Size.zero) Size size,
  @Default(Duration.zero) Duration duration,
  @Default(Duration.zero) Duration bufferedDuration,
}) = _PlayerEvent;