release method

void release(
  1. Object owner
)

Drops the claim held by owner.

Implementation

void release(Object owner) {
  if (!identical(_owner, owner)) {
    throw const OrmStateException(
        'Only the owning context may release a connection');
  }
  _release(owner);
  _owner = null;
}