close method

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

Implementation

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