NepaliNumberFormat class
Provides the ability to format a number in a Nepali way.
Constructors
Properties
- decimalDigits → int?
-
Specifies the number of decimal places to include in formatted number.
final
- delimiter → String
-
The character used to separate place value in number.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- includeDecimalIfZero → bool
-
If true, decimal value will be included in the formatted string even if
numbers after decimals are only 0s.
final
- inWords → bool
-
If true, formats the number in words.
final
- isMonetory → bool
-
If true, formats the number as if it is monetary value.
Also, symbol can be added while true.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spaceBetweenAmountAndSymbol → bool
-
If true, places a space between symbol and the number.
final
- symbol → String?
-
Specifies the symbol to use in monetary value.
isMonetory is required to be set as true.
final
- symbolOnLeft → bool
-
If true, place the symbol on left side of the formatted number.
final
Methods
-
format<
T extends Object> (T? number) → String - Format number according to specified parameters and return the formatted string.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited