PaddedNumber<T extends num> extension
Utilities for formatting numbers.
Methods
-
padLeft(int width, [String padding = '0'])
→ String
-
Pads this number on the left with
padding
if it is shorter than width
.
-
padRight(int width, [String padding = '0'])
→ String
-
Pads this number on the right with
padding
if it is shorter than width
.