handleShowVolumeLevel method
Show the volume level.
Implementation
handleShowVolumeLevel({Duration duration = const Duration(seconds: 3)}) {
_showVolumeLevel = true;
_notify();
// Cancel any previously running timer.
_showVolumeLevelTimer?.cancel();
_showVolumeLevelTimer = Timer(duration, () {
_showVolumeLevel = false;
_notify();
});
}