StyleOneWidget constructor

const StyleOneWidget({
  1. Key? key,
  2. required AudioPlayerWidget widget,
  3. required bool isPlaying,
  4. required double progress,
  5. required Duration position,
  6. required Duration duration,
  7. required bool showProgressBar,
  8. required bool showTimer,
  9. required Function playAudio,
  10. required Function pauseAudio,
  11. required dynamic seekTo(
    1. double
    ),
  12. required bool showSpeedControl,
  13. required List<double> playbackSpeeds,
  14. required double currentSpeed,
  15. required dynamic setSpeed(
    1. double
    ),
})

Creates a new instance of the StyleOneWidget class.

Implementation

const StyleOneWidget(
    {super.key,
    required this.widget,
    required this.isPlaying,
    required this.progress,
    required this.position,
    required this.duration,
    required this.showProgressBar,
    required this.showTimer,
    required this.playAudio,
    required this.pauseAudio,
    required this.seekTo,
    required this.showSpeedControl,
    required this.playbackSpeeds,
    required this.currentSpeed,
    required this.setSpeed});