useCountdown function Null safety

CountdownResult useCountdown(
  1. DateTime targetDate,
  2. {int? interval,
  3. dynamic onEnd(
      )?}
    )

    Implementation

    CountdownResult useCountdown(DateTime targetDate,
        {int? interval, Function()? onEnd}) {
      return use(_Countdown(
        targetDate: targetDate,
        interval: interval ?? 1000,
        onEnd: onEnd,
      ));
    }