String addZeroIfLess10(int value) { var newValue = value.toString(); if (value < 10) { newValue = "0$value"; } return newValue; }