SingleShotTimerTaskSpecification(Duration duration, void callback())

Source

SingleShotTimerTaskSpecification(this.duration, void this.callback());