Disposes the handler, clearing the queue.
This method ensures that no pending effects remain in the queue when the handler is no longer needed.
@override Future<void> dispose() async { _queue.clear(); }