onCancel property
void Function()?
onCancel
final
What happens when this level is cancelled.
This method will be called either by the cancelScanCode, or the axis
specified as the cancelAxis
argument to the constructor.
Implementation
final void Function()? onCancel;