detach method

int detach([
  1. bool keepAlive = false
])

Implementation

int detach([bool keepAlive = false]) {
  if (keepAlive) return nativeFunction;
  registry.remove(this);
  dispose();
  return nativeFunction;
}