delay method

Future delay([
  1. FutureOr callback()?
])

Converts duration object to Future with an optional callback

Implementation

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