rialToToman method

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

Rial → toman (÷10); null counts as 0.

Implementation

String rialToToman({bool removeNegative = false}) => "${((this ?? 0) ~/ 10).toString().separateNumbers3By3()} تومان".replaceAll(removeNegative ? "-" : "", "").trim();