valueOf static method
Returns the WebSocketStatusCodes by the given code
.
Implementation
static WebSocketStatusCodes? valueOf(int code) {
for (final value in values) {
if (value.code == code) return value;
}
return null;
}
Returns the WebSocketStatusCodes by the given code
.
static WebSocketStatusCodes? valueOf(int code) {
for (final value in values) {
if (value.code == code) return value;
}
return null;
}