pad method

String pad(
  1. int value
)

Implementation

String pad(int value) {
  return value.toString().padLeft(2, '0');
}