WalletListener class
A listener class for wallet-related events during synchronization/continuous polling.
Constructors
- WalletListener({void onSyncingUpdate({String? message, required int nodeHeight, required int syncHeight})?, void onNewBlock(int height)?, void onBalancesChanged({required BigInt newBalance, required BigInt newUnlockedBalance})?, void onError(Object? error, StackTrace? stackTrace)?})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onBalancesChanged → void Function({required BigInt newBalance, required BigInt newUnlockedBalance})?
-
Called when the wallet balance or unlocked balance updates.
final
- onError → void Function(Object? error, StackTrace? stackTrace)?
-
Called when an error occurs during synchronization/polling.
final
- onNewBlock → void Function(int height)?
-
Called when the daemon’s chain height changes, indicating new blocks.
final
- onSyncingUpdate → void Function({String? message, required int nodeHeight, required int syncHeight})?
-
Called when the wallet sync progress is updated.
final
- 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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited