isCancelled property

bool isCancelled

Whether this task result is due to a task having been cancelled. If this is true, isFailure will also be true.

Implementation

bool get isCancelled => error is FutureCancelled;