bool isValidAmount(double amount) { try { return amount.isFinite && amount >= 0; } catch (_) { return false; } }