onTimer method

Future<bool> onTimer()

Implementation

Future<bool> onTimer() async {
  bool ok = true;

  // fire event
  if (!isNullOrEmpty(action)) ok = await EventHandler(this).execute(_action);

  // start a new timer
  start();

  return ok;
}