twoNum function

String twoNum(
  1. int num
)

转成两位数

Implementation

String twoNum(int num) {
  return num > 9 ? num.toString() : "0$num";
}