numberFormat static method

String numberFormat({
  1. required num? number,
  2. String? symbol,
  3. bool? isOrder,
  4. int? decimalDigits,
})

Implementation

static String numberFormat(
    {required num? number,
    String? symbol,
    bool? isOrder,
    int? decimalDigits}) {
  return NumberFormat.currency(
    customPattern: '#,###.# \u00a4',
    symbol: AppHelper.getTr(TrKeys.som),
    decimalDigits: decimalDigits ?? 0,
  ).format(number ?? 0);
}