oneSecond function

Future<void> oneSecond()

instead of await Future.delayed(const Duration(seconds:1));

Implementation

Future<void> oneSecond() => forSeconds(1);