handPause method

void handPause({
  1. bool prewShadowShow = false,
})

Implementation

void handPause({bool prewShadowShow = false}) {
  if (!_playing) {
    return;
  }
  if (prewShadowShow) {
    prevShadower = Timer(Duration(milliseconds: 75), () {
      _prewShadowShowing = true;
      _callFunctions(_onPrewShadowShows);
      prevShadower?.cancel();
    });
  }
  _goingNext = true;
  nexter = Timer(Duration(milliseconds: 400), () {
    _goingNext = false;
    nexter?.cancel();
  });
  uiHider = Timer(Duration(milliseconds: 750), () {
    _uiHiding = true;
    _callFunctions(_onUIHides);
    uiHider?.cancel();
  });
  _playing = false;
  _callFunctions(_onPauseds);
}