threeDigits method

String threeDigits(
  1. int n
)

Implementation

String threeDigits(int n) {
  return n.toString().padLeft(3, '0');
}