toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case ConnectionState.connected:
      return 'CONNECTED';
    case ConnectionState.disconnected:
      return 'DISCONNECTED';
    case ConnectionState.unknown:
      return 'UNKNOWN';
  }
}