twoSeconds function

Future<void> twoSeconds()

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

Implementation

Future<void> twoSeconds() => forSeconds(2);