toman method

String toman({
  1. bool removeNegative = false,
})

"1500000" → "1,500,000 تومان"; removeNegative drops the minus sign.

Implementation

String toman({bool removeNegative = false}) => "${(this ?? "").separateNumbers3By3()} تومان".trim().replaceAll(removeNegative ? "-" : "", "");