popContext method

TransactionContext? popContext()

Implementation

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