Wallet constructor
Wallet({
- String id = '',
- double balance = 0.0,
- AppCurrency currency = AppCurrency.appCoin,
- WalletStatus status = WalletStatus.active,
- int createdTime = 0,
- int lastUpdated = 0,
- String? lastTransactionId,
Implementation
Wallet({
this.id = '',
this.balance = 0.0,
this.currency = AppCurrency.appCoin, // Valor por defecto
this.status = WalletStatus.active, // Valor por defecto
this.createdTime = 0, // Debería establecerse al crear con DateTime.now().millisecondsSinceEpoch
this.lastUpdated = 0, // Debería establecerse al crear y actualizar
this.lastTransactionId, // Opcional
});