String toString()

Returns a string representation of this object.

Source

String toString() {
  return const [
    'RawSocketEvent:READ',
    'RawSocketEvent:WRITE',
    'RawSocketEvent:READ_CLOSED',
    'RawSocketEvent:CLOSED'
  ][_value];
}