toDollarAsFixed method

  1. @Deprecated('Use [toDoubleStringAsFixed] instead. It will be removed soon.')
String toDollarAsFixed({
  1. int digit = 2,
})

This ext will be removed soon. Use toDoubleStringAsFixed instead.

Implementation

@Deprecated('Use [toDoubleStringAsFixed] instead. It will be removed soon.')
String toDollarAsFixed({int digit = 2}) {
  return toStringAsFixed(truncateToDouble() == this ? 0 : digit);
}