addLeftPad method

String addLeftPad([
  1. int width = 2,
  2. String pad = '0'
])

Implementation

String addLeftPad([
  int width = 2,
  String pad = '0',
]) =>
    toString().padLeft(width, pad);