CancellableEvent class abstract

Base class for events that support cancellation.

CancellableEvent provides cancellation support for long-running operations. The event maintains cancellation state that can be checked by use cases during execution.

Example:

class ProcessOrderEvent extends CancellableEvent {
  final String orderId;
  ProcessOrderEvent({required this.orderId});
}
Inheritance
Implementers

Constructors

CancellableEvent()

Properties

groupsToRebuild ↔ Set<String>?
The set of widget rebuild groups this event should trigger.
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setteroverride
isCancelled → bool
Whether this event has been cancelled
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
whenCancelled → Future<void>
Future that completes when the event is cancelled
no setter

Methods

cancel() → void
Cancels the operation associated with this event
close() → Future<void>
Called when the event is disposed.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Resets the cancellation state of this event
toString() → String
A string representation of this object.
inherited

Operators

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