convertAndFormat method
Convert currency and format the result
Implementation
Future<String> convertAndFormat({
required String from,
required String to,
required double amount,
int decimalPlaces = 2,
}) async {
final convertedAmount = await _converter.convert(
fromCurrency: from,
toCurrency: to,
amount: amount,
);
return formatCurrency(convertedAmount, to, decimalPlaces: decimalPlaces);
}