delay function

Future delay({
  1. Duration duration = const Duration(milliseconds: 500),
})

Implementation

Future delay({Duration duration = const Duration(milliseconds: 500)}) {
  return Future.delayed(duration);
}