dispose method Null safety

void dispose()

Implementation

void dispose() {
  throw 'To use sockets you need dart:io or dart:html';
}