animateEnd method
void
animateEnd(
- 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();
}
}