Top Up Balance logic and Added fixes for routing
This commit is contained in:
@@ -9,6 +9,10 @@ class Wallet {
|
||||
final Currency currency;
|
||||
final bool isHidden;
|
||||
final DateTime calculatedAt;
|
||||
final String? depositAddress;
|
||||
final String? network;
|
||||
final String? tokenSymbol;
|
||||
final String? contractAddress;
|
||||
|
||||
Wallet({
|
||||
required this.id,
|
||||
@@ -18,6 +22,10 @@ class Wallet {
|
||||
required this.currency,
|
||||
required this.calculatedAt,
|
||||
this.isHidden = true,
|
||||
this.depositAddress,
|
||||
this.network,
|
||||
this.tokenSymbol,
|
||||
this.contractAddress,
|
||||
});
|
||||
|
||||
Wallet copyWith({
|
||||
@@ -27,6 +35,10 @@ class Wallet {
|
||||
Currency? currency,
|
||||
String? walletUserID,
|
||||
bool? isHidden,
|
||||
String? depositAddress,
|
||||
String? network,
|
||||
String? tokenSymbol,
|
||||
String? contractAddress,
|
||||
}) => Wallet(
|
||||
id: id ?? this.id,
|
||||
name: name ?? this.name,
|
||||
@@ -35,5 +47,9 @@ class Wallet {
|
||||
walletUserID: walletUserID ?? this.walletUserID,
|
||||
isHidden: isHidden ?? this.isHidden,
|
||||
calculatedAt: calculatedAt,
|
||||
depositAddress: depositAddress ?? this.depositAddress,
|
||||
network: network ?? this.network,
|
||||
tokenSymbol: tokenSymbol ?? this.tokenSymbol,
|
||||
contractAddress: contractAddress ?? this.contractAddress,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user