getCallback method

(dynamic Function()?) getCallback()

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

Returns the callback function or null if it is not set.

Implementation

Function()? getCallback() {
  return _callback;
}