format method
Formats this decimal to a String.
- If
compact
istrue
it will format ascompactedPrecision
instance. - If
thousands
istrue
it will use thousands delimiters for thewholePart
. - If
decimal
istrue
it will add thedecimalPartAsString
to the String result. decimalDelimiter
is the delimiter for the decimal part.thousandsDelimiter
is the thousands delimiter.
Implementation
@override
String format({bool thousands = true, String thousandsDelimiter = ','}) =>
_formatImpl(toStringStandard(), thousands, thousandsDelimiter);