disposeCurrentScope static method
void
disposeCurrentScope()
Disposes the current request scope if one is active (no-op otherwise).
Prefer withRequestScope/withRequestScopeStream which manage lifetime automatically, including streaming, errors, and cancellation.
Implementation
static void disposeCurrentScope() {
currentScopeOrNull?.dispose();
}