CountdownWidgetBuilder typedef

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

Implementation

typedef CountdownWidgetBuilder = Widget Function(
    BuildContext context,

    /// The time of the current tick.
    DateTime dateTime,

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

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

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