format method

  1. @override
String format({
  1. bool thousands = true,
  2. String thousandsDelimiter = ',',
})
override

Formats this decimal to a String.

  • If compact is true it will format as compactedPrecision instance.
  • If thousands is true it will use thousands delimiters for the wholePart.
  • If decimal is true it will add the decimalPartAsString 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);