popContext method

TransactionContext? popContext()

Implementation

TransactionContext? popContext() {
  if (_contextStack.isEmpty) return null;
  final context = _contextStack.removeLast();
  try {
    context.cleanup();
  } finally {
    _ownedContexts.remove(context);
  }
  return context;
}