debugSubWidget static method
If a Substitution was made, returns the GetScope widget that made it.
The result is always null in profile & release mode.
Implementation
static GetScope? debugSubWidget(BuildContext context, ValueListenable<Object?> placeholder) {
return kDebugMode && GetScope.maybeOf(context, placeholder) != null
? context.findAncestorStateOfType<_GetScopeState>()?.widget
: null;
}