delay function

Future delay([
  1. Duration duration = const Duration(milliseconds: 300)
])

Implementation

Future delay([Duration duration = const Duration(milliseconds: 300)]) async {
  await Future.delayed(duration);
}