formatAmount static method

String formatAmount(
  1. num amountInBase
)

Implementation

static String formatAmount(num amountInBase) {
  if (_currencyFormatter == null) throw "Currency formatter not initialized.";
  return _currencyFormatter!.format((amountInBase / 100));
}