TimeBuilder.eachHour constructor
TimeBuilder.eachHour({
- Key? key,
- int? hours,
- required TimerWidgetBuilder builder,
Rebuilds each hour. For example, this will show a clock that rebuilds each hour:
TimerWidget.eachHour(
builder: (BuildContext context, DateTime now, int ticks)
=> ClockRenderer(dateTime: now);
)
If you pass hours
it will stop when reaching that number of ticks.
Implementation
TimeBuilder.eachHour({Key? key, int? hours, required this.builder})
: ifRebuilds = _eachHour,
isFinished = _ifFinished(hours),
super(key: key);