formatCurrency method

String formatCurrency(
  1. double amount,
  2. String currencyCode, {
  3. int decimalPlaces = 2,
})

Format currency with symbol

Implementation

String formatCurrency(
  double amount,
  String currencyCode, {
  int decimalPlaces = 2,
}) {
  return currency.formatCurrency(
    amount,
    currencyCode,
    decimalPlaces: decimalPlaces,
  );
}