release method Null safety

void release()
inherited

Implementation

void release() {
  _retainCount--;
  if (_retainCount <= 0) {
    _owner?.remove(this);
    _owner = null;
  }
}