destroy method

void destroy()
override
IDestructible interface.

Implementation

void destroy() {
  _destroyed = true;
  _attached = false;
  _connection?.sendDetachRequest(_instanceId as int);
  emitArgs("destroy", [this]);
}