close static method

void close(
  1. int port
)

Closes a port. Posts to a closed port are dropped, mirroring Dart_PostCObject on a closed native port.

Implementation

static void close(int port) => _handlers.remove(port);