close method

void close()

Closes this keep-alive link, allowing the associated resource to be disposed when no longer needed.

It is safe to call this method multiple times.

Implementation

@pragma('vm:prefer-inline')
void close() {
  if (_closed) return;
  _closed = true;
  _close();
}