connect method Null safety

Future connect()

Implementation

Future connect() async {
  throw 'To use sockets you need dart:io or dart:html';
}