getMinHm method Null safety

String getMinHm()

Implementation

String getMinHm() {
  int hour = _lunar!.getHour();
  if (hour < 1) {
    return '00:00';
  } else if (hour > 22) {
    return '23:00';
  }
  if (hour % 2 == 0) {
    hour -= 1;
  }
  return '${hour < 10 ? '0' : ''}$hour:00';
}