formatNumber function

String? formatNumber(
  1. dynamic number, {
  2. bool showComma = true,
  3. int decimals = 2,
  4. bool fixedDecimal = true,
})

Implementation

String? formatNumber(dynamic number, {bool showComma = true, int decimals = 2, bool fixedDecimal = true}) {
  return NUIStringUtil.formatNumber(number, showComma: showComma, decimals: decimals, fixedDecimal: fixedDecimal);
}