delayed<T> method
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);