setCallback method
- dynamic value(
Sets the callback function that is called when this timer is triggered.
value
the callback function to be called.
Implementation
void setCallback(Function()? value) {
_callback = value;
_task = null;
}
Sets the callback function that is called when this timer is triggered.
value
the callback function to be called.void setCallback(Function()? value) {
_callback = value;
_task = null;
}