delayShowingList method

void delayShowingList()

Implementation

void delayShowingList(){
  progressValue = 0.0;
  const oneSec = const Duration(milliseconds: 300);
  Timer.periodic(oneSec, (Timer t) {
    setState(() {
      progressValue += 0.2;
      // we "finish" downloading here
      if (progressValue > 1.0) {
        progressValue = 0.0;
        finishLoading = true;
        t.cancel();
      }
    });
  });
}