setRawOption abstract method Null safety

void setRawOption(
  1. RawSocketOption option
)

Customizes the RawSocket.

See RawSocketOption for available options.

Throws an OSError on failure and a SocketException if the socket has been destroyed or upgraded to a secure socket.

Implementation

void setRawOption(RawSocketOption option);