CountdownFormatted constructor

const CountdownFormatted({
  1. Key? key,
  2. required Duration duration,
  3. required Widget builder(
    1. BuildContext context,
    2. String remaining
    ),
  4. void onFinish()?,
  5. CountdownStatus? countdownStatus = CountdownStatus.play,
  6. void onTick(
    1. Duration duration
    )?,
  7. Duration interval = const Duration(seconds: 1),
  8. String formatter(
    1. Duration
    )?,
})

Implementation

const CountdownFormatted(
    {Key? key,
    required this.duration,
    required this.builder,
    this.onFinish,
    this.countdownStatus = CountdownStatus.play,
    this.onTick,
    this.interval = const Duration(seconds: 1),
    this.formatter})
    : super(key: key);