cancel method

void cancel()

Implementation

void cancel() => _isCanceled = true;