zero2 function

String zero2(
  1. dynamic word
)

Implementation

String zero2(word) {
  if (word.length == 1) {
    return '0' + word;
  } else {
    return word;
  }
}