currency static method
Generate a random currency and amount.
Implementation
static String currency() {
final amount = (_random.nextDouble() * 1000).toStringAsFixed(2);
return '${currencies[_random.nextInt(currencies.length)]} $amount';
}
Generate a random currency and amount.
static String currency() {
final amount = (_random.nextDouble() * 1000).toStringAsFixed(2);
return '${currencies[_random.nextInt(currencies.length)]} $amount';
}