write method

Future<void> write(
  1. String text
)

Sends text without a trailing newline.

Implementation

Future<void> write(String text) async {
  if (_aborted) return;
  try {
    _res.write(text);
    await _res.flush();
  } on SocketException {
    _aborted = true;
  }
}