toStringPadded method

String toStringPadded(
  1. int width
)

Converts to a String of width and left padded with 0.

Implementation

String toStringPadded(int width) {
  var s = toString();
  return s.numericalPadLeft(width);
}