formatWith method

String formatWith(
  1. NumberFormat format
)

format the current number using NumberFormat

Implementation

String formatWith(NumberFormat format) {
  if (this == null) return '';
  return format.format(this);
}