onRepeatEvent abstract method

void onRepeatEvent(
  1. DateTime timestamp
)

Called based on the eventAction set in ForegroundTaskOptions.

  • .nothing() : Not use onRepeatEvent callback.
  • .once() : Call onRepeatEvent only once.
  • .repeat(interval) : Call onRepeatEvent at milliseconds interval.

Implementation

void onRepeatEvent(DateTime timestamp);