cancel method Null safety

void cancel()

取消方法

Implementation

void cancel() => _isCancelled = true;