onCancel property

void Function() onCancel
getter/setter pair

The handler to call for Cancel (esc key) actions

Implementation

void Function() onCancel = _doNothing;