Polling class

Inheritance

Constructors

Polling(BramblClient client, String txId, {int limit = 100, int timeout = 30})
Setup short polling

Properties

client BramblClient
final
hashCode int
The hash code for this object.
no setterinherited
isPolling bool
no setter
limit int
getter/setter pair
retryDelay Duration
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout int
getter/setter pair
txId String
getter/setter pair

Methods

emitTransactionUpdate(TransactionReceipt? transaction) → void
Add transaction to the stream
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onUpdate() Stream<TransactionReceipt?>
When a transaction is added to the stream
inherited
start() Future<void>
Start the short poll, throws ShortPollingException on error or a short poll that is already in place
override
stop() Future<void>
Stop the short poll
override
toString() String
A string representation of this object.
inherited

Operators

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

Constants

maxTimeout → const int