charCode property Null safety

int charCode
override

Calculated value of what the estimated charCode is for this event.

Implementation

int get charCode => this.type == 'keypress' ? _shadowCharCode : 0;