listenStatus method
Implementation
void listenStatus(AnimationStatus status) {
if (closed) return;
switch (controller.status) {
case AnimationStatus.completed:
onCompleted();
break;
case AnimationStatus.dismissed:
onDismissed();
break;
default:
}
}