startBadApple method

Future<void> startBadApple()

Starts playing Bad Apple.

Implementation

Future<void> startBadApple() async {
  isPlayingBadApple = true;
  notifyListeners();
  zoom(50);
  badAppleFrame = 0;
  badAppleTimer = Timer.periodic(const Duration(milliseconds: 1000 ~/ 30), _loadBadAppleFrame);
  await badAppleAudioPlayer.setAsset("assets/bad_apple2.mp3");
  badAppleAudioPlayer.play().ignore();
}