onDestroy abstract method

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

Called when the task is destroyed.

Implementation

Future<void> onDestroy(DateTime timestamp, SendPort? sendPort);