OptionalIntExtension extension
Money formatting on int? (null counts as 0). user.balance.toman()
- on
-
- int?
Methods
-
rial(
{bool removeNegative = false}) → String -
Available on int?, provided by the OptionalIntExtension extension
null → "0 ریال", 1500 → "1,500 ریال". -
rialToToman(
{bool removeNegative = false}) → String -
Available on int?, provided by the OptionalIntExtension extension
Rial → toman (÷10); null counts as 0. -
toman(
{bool removeNegative = false}) → String -
Available on int?, provided by the OptionalIntExtension extension
null → "0 تومان", 1500 → "1,500 تومان". -
toStringOrEmptyIfNull(
) → String -
Available on int?, provided by the OptionalIntExtension extension
The number as text, or "" when null.