socket property Null safety

Socket? socket

Implementation

Socket? get socket => _socket;