isFocusEvent property
bool
isFocusEvent
Uses Duck Typing to detect if the event instance is a SyntheticFocusEvent.
Implementation
bool get isFocusEvent =>
(_hasProperty('relatedTarget') && !_hasProperty('button')) || _checkEventType(const ['focus', 'blur']);