closeCode property Null safety

int? closeCode
override

The close code set when the WebSocket connection is closed.

Before the connection has been closed, this will be null.

Implementation

@override
int? get closeCode => _webSocket?.closeCode;