setTask method

void setTask(
  1. INotifiable value
)

Sets a new INotifiable object to receive notifications from this timer.

  • value a INotifiable object to be triggered.

Implementation

void setTask(INotifiable value) {
  _task = value;
  _callback = () {
    if (_task != null) {
      _task!.notify('pip-commons-timer', Parameters());
    }
  };
}