toPadded method

String toPadded([
  1. int width = 3
])

Implementation

String toPadded([int width = 3]) => toString().padLeft(width, '0');