description property
String
get
description
Returns a human-readable description of the state
Implementation
String get description {
switch (this) {
case WebSocketState.initial:
return 'Initial';
case WebSocketState.connecting:
return 'Connecting';
case WebSocketState.connected:
return 'Connected';
case WebSocketState.closing:
return 'Closing';
case WebSocketState.closed:
return 'Closed';
case WebSocketState.failed:
return 'Failed';
case WebSocketState.reconnecting:
return 'Reconnecting';
case WebSocketState.suspended:
return 'Suspended';
}
}