onAbort method

void onAbort(
  1. void callback()
)

Registers callback to be called when the client disconnects.

Implementation

void onAbort(void Function() callback) => _onAbortCallback = callback;