IfRebuilds typedef

IfRebuilds = bool Function({required DateTime currentTime, required DateTime? lastTime, required int ticks})

Return true if the widget should rebuild. Return false if it should not rebuild.

Implementation

typedef IfRebuilds = bool Function({
//
  /// The current time.
  required DateTime currentTime,

  /// The time of the last tick (may be null for the first tick).
  required DateTime? lastTime,

  /// The number of ticks since the timer started.
  required int ticks,
});