isCancelled method Null safety

bool isCancelled()

Implementation

bool isCancelled() {
  return _cancelled;
}