onDisconnected property Null safety

DisconnectCallback? onDisconnected
read / write

Client disconnect callback, called on unsolicited disconnect. This will not be called even if set if [autoReconnect} is set,instead AutoReconnectCallback will be called.

Implementation

DisconnectCallback? onDisconnected;