close method

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

Implementation

void close([int? statusCode = status.goingAway, String? reason]) {
  channel.sink.close(statusCode, reason);
}