EventSubscription class

Event subscription that can be cancelled or automatically expire.

Constructors

EventSubscription({required String id, required Type eventType, required Function callback, String? subscriberModuleId, Duration? timeout})

Properties

callback → Function
final
createdAt → DateTime
final
eventType → Type
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
isCancelled → bool
no setter
isExpired → bool
Check if the subscription has exceeded its defined timeout.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subscriberModuleId → String?
final
timeout → Duration?
final

Methods

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

Operators

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