CancelReason class abstract

Why a job was cancelled, with any data the reason needs.

Extend this class to carry domain data such as an error, its stack trace, or an identifier. Inspect reasons by type; name is only a display label. There is no equality by name: subclasses inherit identity equality unless they define their own value equality.

Implementers
Annotations
  • @immutable

Constructors

CancelReason()
Creates a reason for a subclass.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
A short label for journals and diagnostics, not a type identifier.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited