Sets or changes the duration on the timer. For a running timer, this setting will take effect after the timer is expired (oneShot) or after it is killed (periodic).
Cleans up underlying OS resources. This is required to change the timer from periodic to oneshot, or before disposing of this object.
Sets the timer to become periodic. For a running timer, this setting will take effect after the timer is expired (oneShot) or after it is killed (periodic).
Runs a non-periodic, oneshot timer once using the specified Duration as a timeout. The handler from the last call to run() will be reused.
Starts the timer using the delegate as an expiration callback.
Returns whether the timer is set to rearm itself (oneShot=false) or if it will have to be rearmed (oneShot=true).
Returns the Duration that the timer will wait before calling the handler after it is run.
Check this property to make sure the event loop hasn't failed
Returns a human-readable error message from the underlying operating system.