toConnectionState method

XmppConnectionState toConnectionState()

Implementation

XmppConnectionState toConnectionState() {
  return XmppConnectionState.values.firstWhere((XmppConnectionState e) {
    return e.name.toString().toLowerCase() == this.toLowerCase();
  }, orElse: () {
    return XmppConnectionState.disconnected;
  });
}