CountdownWidgetBuilder typedef

CountdownWidgetBuilder = Widget Function({required BuildContext context, required int countdown, required DateTime currentTickTime, required DateTime initialTime, required bool isFinished, required int ticks})

Implementation

typedef CountdownWidgetBuilder = Widget Function({
  required BuildContext context,

  /// The time of the current tick.
  /// This is the same as the current time (or very similar).
  required DateTime currentTickTime,

  /// The time when the [TimeBuilder] was created.
  required DateTime initialTime,

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

  /// This is false during the countdown, and becomes true as soon as it ends.
  required bool isFinished,

  /// The number of seconds still remaining in the countdown.
  /// When this gets to zero, [isFinished] will be true.
  required int countdown,
});