AsyncEventPulling class

Performs a periodic pulling of AsyncEventChannel events.

Constructors

AsyncEventPulling(AsyncEventChannel channel, {Duration period = const Duration(seconds: 10), Duration? minInterval})
AsyncEventPulling.fromConfig(AsyncEventChannel channel, AsyncEventPullingConfig config)

Properties

channel → AsyncEventChannel
The AsyncEventChannel ot perform pulling of events.
final
config → AsyncEventPullingConfig
final
hashCode → int
The hash code for this object.
no setterinherited
isPulling → bool
Returns true if is currently pulling.
no setter
isScheduled → bool
Returns true if a pulling was scheduled.
no setter
isStarted → bool
no setter
isStopped → bool
no setter
minInterval → Duration
The minimal interval for consecutive pulls.
no setter
period → Duration
The pulling period.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelChannelCalls() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pull() → FutureOr<int>
Forces a channel pull.
start({Duration? delay}) → void
Starts pulling.
stop({bool cancelChannelCalls = false}) → void
Stops pulling
toString() → String
A string representation of this object.
override
waitPulling() → FutureOr<bool>
Waits for a pull and completes.

Operators

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