isAnimationEvent property

bool isAnimationEvent

Uses Duck Typing to detect if the event instance is a SyntheticAnimationEvent.

Implementation

bool get isAnimationEvent => _hasProperty('animationName') || _checkEventType(const ['animation']);