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; final DateTime calculatedAt; Wallet({ required this.id, required this.walletUserID, required this.name, required this.balance, required this.currency, required this.calculatedAt, this.isHidden = true, }); Wallet copyWith({ String? id, String? name, double? balance, Currency? currency, String? walletUserID, bool? isHidden, }) => 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, calculatedAt: calculatedAt, ); }