Wallet class

Annotations
  • @HiveType(typeId: kWalletTypeId)

Constructors

Wallet({String? walletId, required String name, required int order, HiveList<PublicAccount>? accounts, required StarknetAccountType accountType})

Properties

accounts → HiveList<PublicAccount>
The list of accounts in this wallet.
final
accountType StarknetAccountType
final
box → BoxBase?
Get the box in which this object is stored. Returns null if object has not been added to a box yet.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isInBox bool
Returns whether this object is currently stored in a box.
no setterinherited
key → dynamic
Get the key associated with this object. Returns null if object has not been added to a box yet.
no setterinherited
name String
User defined name for this wallet.
final
order int
Order in the list of wallets.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
walletId String
Unique identifier for this wallet that is used to retrieve the corresponding seed phrase in a SecureStore
final

Methods

copyWith({String? name, int? order, HiveList<PublicAccount>? accounts}) Wallet
delete() Future<void>
Deletes this object from the box it is stored in.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save() Future<void>
Persists this object.
inherited
toString() String
A string representation of this object.
inherited

Operators

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