OpenSocket typedef Null safety

OpenSocket = void Function()

Signature for SocketNotifier.open.

Implementation

typedef OpenSocket = void Function();