OptionalDoubleExtension extension

Money formatting on double? (null counts as 0, decimals dropped). price.toman()

on

Methods

rial({bool removeNegative = false}) → String

Available on double?, provided by the OptionalDoubleExtension extension

null → "0 ریال", 1500.7 → "1,500 ریال".
rialToTomanMoneyPersian({bool removeNegative = false}) → String

Available on double?, provided by the OptionalDoubleExtension extension

Rial → toman (÷10, decimals dropped); null counts as 0.
toman({bool removeNegative = false}) → String

Available on double?, provided by the OptionalDoubleExtension extension

null → "0 تومان", 1500.7 → "1,500 تومان".
toStringOrEmptyIfNull() → String

Available on double?, provided by the OptionalDoubleExtension extension

The number as text, or "" when null.