cancel method

Future<void> cancel()

Implementation

Future<void> cancel() async {
  await _onCancel?.call();
}