Wallets class

Mixed-in types
Annotations
  • @riverpod

Constructors

Wallets()

Properties

boxName String
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
ref → AutoDisposeNotifierProviderRef<WalletsState>
The Ref from the provider associated with this Notifier.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state WalletsState
The value currently exposed by this Notifier.
getter/setter pairinherited
stateOrNull WalletsState?
The value currently exposed by this Notifier.
no setterinherited

Methods

addAccount({required String walletId, required Future<String?> getPassword(), SecureStore? secureStore}) → dynamic
addWallet({required SecureStore secureStore, String? seedPhrase, String? walletId}) → dynamic
build() WalletsState
Initialize an AsyncNotifier.
deleteWallets() → dynamic
deployAccount({required SecureStore secureStore, required Account account}) → dynamic
fromJson(Map<String, dynamic> json) WalletsState
override
getSecureStoreForWallet({required BuildContext context, String? walletId}) Future<SecureStore>
getStarknetAccount({SecureStore? secureStore, required Future<String?> getPassword()}) Future<Account>
listenSelf(void listener(WalletsState? previous, WalletsState next), {void onError(Object error, StackTrace stackTrace)?}) → void
Listens to changes on the value exposed by this provider.
inherited
loadPersistedState() → dynamic
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
persistState() → dynamic
inherited
refreshAccount(String walletId, int accountId) Future<void>
refreshEthBalance(String walletId, int accountId) → dynamic
refreshStrkBalance(String walletId, int accountId) → dynamic
selectAccount({required String walletId, required int accountId}) → dynamic
toString() String
A string representation of this object.
inherited
updateSelectedAccountIsDeployed({required String walletId, required int accountId, required bool isDeployed}) → dynamic
updateShouldNotify(WalletsState previous, WalletsState next) bool
A method invoked when the state exposed by this Notifier changes. It compares the previous and new value, and return whether listeners should be notified.
inherited
updateWallet({required Wallet wallet, required int accountId}) → dynamic

Operators

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