setCallback method

void setCallback (dynamic value())

Sets the callback function that is called when this timer is triggered.

  • value the callback function to be called.