setTask method
- 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(Context.fromTraceId('pip-commons-timer'), Parameters());
}
};
}