delayed function

Future<void> delayed(
  1. FutureOr call(), [
  2. int t = 0
])

Implementation

Future<void> delayed(
  final FutureOr<dynamic> Function() call,
  [ final int t = 0 ]
) => Future.delayed(
  t == 0
    ? Duration.zero
    : Duration(milliseconds: t),
  call
);