onDestroy abstract method

void onDestroy(
  1. DateTime timestamp,
  2. SendPort? sendPort
)

Called when the task is destroyed.

Implementation

void onDestroy(DateTime timestamp, SendPort? sendPort);