delayed<T> method

Future<T> delayed<T>([
  1. FutureOr<T> callback()?
])

final _delay = 3.seconds; print('+ wait $_delay'); await _delay.delayed(); print('- finish wait $_delay'); print('+ callback in 700ms');

Implementation

Future<T> delayed<T>([FutureOr<T> Function()? callback]) =>
    Future<T>.delayed(this, callback);