SheenTransportControls constructor
const
SheenTransportControls({
- Key? key,
- required bool playing,
- bool loading = false,
- VoidCallback? onPlayPause,
- VoidCallback? onNext,
- VoidCallback? onPrevious,
- bool shuffle = false,
- VoidCallback? onShuffle,
- SheenRepeatMode repeat = SheenRepeatMode.off,
- VoidCallback? onRepeat,
- VoidCallback? onSkipBack,
- VoidCallback? onSkipForward,
- Duration skipBack = const Duration(seconds: 15),
- Duration skipForward = const Duration(seconds: 30),
- Widget? leading,
- Widget? trailing,
- Color? color,
Controls for a player that is playing or paused.
Implementation
const SheenTransportControls({
super.key,
required this.playing,
this.loading = false,
this.onPlayPause,
this.onNext,
this.onPrevious,
this.shuffle = false,
this.onShuffle,
this.repeat = SheenRepeatMode.off,
this.onRepeat,
this.onSkipBack,
this.onSkipForward,
this.skipBack = const Duration(seconds: 15),
this.skipForward = const Duration(seconds: 30),
this.leading,
this.trailing,
this.color,
});