formatNum method

String formatNum(
  1. double num, {
  2. int postion = 2,
})

Implementation

String formatNum(double num, {int postion = 2}) {
  String money = formartNum(num, 2);
  return money;
}