onCancel property

set onCancel (void callback(WASIComponentSubtask subtask)?)

Replaces the cancellation callback.

Implementation

set onCancel(void Function(WASIComponentSubtask subtask)? callback) {
  _onCancel = callback;
}