twoDigits function

String twoDigits(
  1. int n
)

Implementation

String twoDigits(int n) {
  if (n >= 10) return '$n';
  return '0$n';
}