send method Null safety

void send(
  1. dynamic data
)

Implementation

void send(dynamic data) async {
  throw 'To use sockets you need dart:io or dart:html';
}