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