Files
sendico/frontend/pweb/lib/models/wallet.dart
2025-11-13 15:06:15 +03:00

39 lines
841 B
Dart

import 'package:pweb/models/currency.dart';
class Wallet {
final String id;
final String walletUserID; // ID or number that we show the user
final String name;
final double balance;
final Currency currency;
final bool isHidden;
Wallet({
required this.id,
required this.walletUserID,
required this.name,
required this.balance,
required this.currency,
this.isHidden = true,
});
Wallet copyWith({
String? id,
String? name,
double? balance,
Currency? currency,
String? walletUserID,
bool? isHidden,
}) {
return Wallet(
id: id ?? this.id,
name: name ?? this.name,
balance: balance ?? this.balance,
currency: currency ?? this.currency,
walletUserID: walletUserID ?? this.walletUserID,
isHidden: isHidden ?? this.isHidden,
);
}
}