toDollarAsFixed method

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

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);
}