close method

void close()

Implementation

void close() {
  _sendPort?.send(const SendPortData(type: SendPortType.terminate));
  _isolate.kill(priority: Isolate.immediate);
}