close method

void close([
  1. int? status,
  2. String? reason
])

Implementation

void close([int? status, String? reason]) {
  throw 'To use sockets you need dart:io or dart:html';
}