dispose method
Releases resources and unregisters the channel handler.
Implementation
Future<void> dispose() async {
FloatyChannel.unregisterHandler(_prefix);
await _connectionSub?.cancel();
_connectionSub = null;
_handlers.clear();
_queue.clear();
}