endRect method
結束展示
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();
}
}