delay function

void delay(
  1. int milliseconds,
  2. VoidCallback action
)

Implementation

void delay(final int milliseconds, final VoidCallback action) async => Future<dynamic>.delayed(
      Duration(milliseconds: milliseconds),
      () async => action(),
    );