IsFinished typedef
IsFinished =
bool Function({required DateTime currentTime, required DateTime initialTime, required DateTime? lastTickTime, required int ticks})
You should return true to end the ticking.
The TimeBuilder generate one last tick/rebuild, and then will stop.
Or return false if it is still going on.
Implementation
typedef IsFinished = bool Function({
//
/// This is the current time.
required DateTime currentTime,
/// This is the time of the last tick (is `null` for the first tick).
required DateTime? lastTickTime,
/// The time when the [TimeBuilder] was created.
required DateTime initialTime,
/// The number of ticks since the [TimeBuilder] was created.
required int ticks,
});