cancel method

void cancel()

Cancel this level.

This method calls onCancel.

Implementation

void cancel() {
  final cancelFunc = onCancel;
  if (cancelFunc != null) {
    cancelFunc();
  }
}