bool kill()

Source

bool kill() {
  receiver.close();
  if (_isolate != null) {
    _isolate.kill();
    return true;
  } else {
    return false;
  }
}