CountdownCallback typedef

CountdownCallback = void Function(CountdownUnit unit, int remaining)

Signature for a function which takes the unit and the remaining countdown.

Implementation

typedef CountdownCallback = void Function(
  CountdownUnit unit,
  int remaining,
);