StyleTwoWidget constructor

const StyleTwoWidget({
  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 Function playAudio,
  8. required Function pauseAudio,
  9. required dynamic seekTo(
    1. double
    ),
  10. bool showTimer = true,
  11. bool showProgressBar = true,
  12. required bool showSpeedControl,
  13. required List<double> playbackSpeeds,
  14. required double currentSpeed,
  15. required dynamic setSpeed(
    1. double
    ),
})

Create a new instance of StyleTwoWidget.

Implementation

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