cancel method

void cancel([
  1. dynamic result
])

Use this to end processing of an event.

Implementation

void cancel([result]) {
  _canceled = true;
  this.result = result ?? this.result;
}