connectionEstablished property
Indicates whether the connection state switched from a not connected state to a connected state.
Implementation
bool get connectionEstablished =>
before != XmppConnectionState.connected &&
state == XmppConnectionState.connected;