pad2 static method

String pad2(
  1. int n
)

Implementation

static String pad2(int n) => n.toString().padLeft(2, '0');