StyleTwoWidget constructor
const
StyleTwoWidget({
- Key? key,
- required AudioPlayerWidget widget,
- required bool isPlaying,
- required double progress,
- required Duration position,
- required Duration duration,
- required Function playAudio,
- required Function pauseAudio,
- required dynamic seekTo(),
- bool showTimer = true,
- bool showProgressBar = true,
- required bool showSpeedControl,
- required List<
double> playbackSpeeds, - required double currentSpeed,
- required dynamic setSpeed(),
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});