PlayerEvent constructor
const
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,
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;