SheenMiniPlayer constructor

const SheenMiniPlayer({
  1. Key? key,
  2. required String title,
  3. String? subtitle,
  4. ImageProvider<Object>? artwork,
  5. bool playing = false,
  6. bool loading = false,
  7. double progress = 0,
  8. VoidCallback? onPlayPause,
  9. VoidCallback? onNext,
  10. VoidCallback? onSkipForward,
  11. Duration skipForward = const Duration(seconds: 30),
  12. VoidCallback? onOpen,
  13. VoidCallback? onSwipeNext,
  14. VoidCallback? onSwipePrevious,
  15. Object? heroTag,
})

A mini player for title.

Implementation

const SheenMiniPlayer({
  super.key,
  required this.title,
  this.subtitle,
  this.artwork,
  this.playing = false,
  this.loading = false,
  this.progress = 0,
  this.onPlayPause,
  this.onNext,
  this.onSkipForward,
  this.skipForward = const Duration(seconds: 30),
  this.onOpen,
  this.onSwipeNext,
  this.onSwipePrevious,
  this.heroTag,
});