setHour method

void setHour(
  1. int? hour
)

Sets the hour and notifies listeners.

Implementation

void setHour(int? hour) {
  if (this.hour == hour) return;
  this.hour = hour;
  notifyListeners();
}