animateEnd method

void animateEnd(
  1. dynamic state
)

Implementation

void animateEnd(state) {
  if (state == AnimationStatus.dismissed) {
    if (_index == null) {
      if (widget.close is Function) widget.close!();
    } else {
      if (widget.onChange is Function) widget.onChange!(_index!);
    }
    // 销毁
    _controller.dispose();
  }
}