setTimeout function

num setTimeout(
  1. void cb([
    1. Iterable?
    ]), [
  2. num? delay,
  3. Iterable? args
])

Sets a timer which executes a function once after the delay (in milliseconds) elapses. Returns an id which may be used to cancel the timeout.

setTimeout(() => { console.log('hello'); }, 500);

Implementation

_i2.num setTimeout(
  void Function([_i2.Iterable<_i2.dynamic>?]) cb, [
  _i2.num? delay,
  _i2.Iterable<_i2.dynamic>? args,
]) =>
    _i4.callMethod(
      _self,
      'setTimeout',
      [
        _i4.allowInterop(([
          a0,
          a1,
          a2,
          a3,
          a4,
          a5,
          a6,
          a7,
          a8,
          a9,
        ]) =>
            cb([
              a0,
              a1,
              a2,
              a3,
              a4,
              a5,
              a6,
              a7,
              a8,
              a9,
            ])),
        delay ?? _i6.undefined,
        ...?args,
      ],
    );