initState method

  1. @override
void initState()
override

Initialise state.

Implementation

@override
void initState() {
  super.initState();
  days = widget.duration.inDays;
  hours = widget.duration.inHours % 24;
  minutes = widget.duration.inMinutes % 60;
  seconds = widget.duration.inSeconds % 60;
  milliseconds = widget.duration.inMilliseconds % 1000;
}