Timer createTimer(Duration duration, void callback())

Creates a Timer where the callback is executed in this zone.

Source

// TODO(floitsch): deprecate once tasks are non-experimental.
Timer createTimer(Duration duration, void callback());