isKeyboardEvent property

bool isKeyboardEvent

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

Implementation

bool get isKeyboardEvent => _hasProperty('key') || _checkEventType(const ['key']);