reloadAfter method Null safety

Future<void> reloadAfter(
  1. dynamic milliseconds
)

Implementation

Future<void> reloadAfter(milliseconds) async {
  timers.add(Timer(
      Duration(milliseconds: milliseconds),
      () => setState(() {
            reloadCounter++;
          })));
}