isEvent property

bool get isEvent

Implementation

bool get isEvent => kind == 'pair' && RegExp(r'^on[A-Z][A-Za-z]*$').hasMatch(key!);