endRect method

TickerFuture endRect({
  1. bool withAnimation = true,
  2. FocusAnimationType? nextAnimationType,
})

結束展示 nextAnimationType 結束展示後, 下一個過度動畫的類型

Implementation

TickerFuture endRect({
  bool withAnimation = true,
  FocusAnimationType? nextAnimationType,
}) {
  _isAnimationForward = false;
  _nextAnimationType = nextAnimationType;
  _stopTimer();
  if (withAnimation) {
    return _controller.reverse();
  } else {
    _controller.reset();
    return TickerFuture.complete();
  }
}