RequestsInspector constructor
const
RequestsInspector({})
Pass your navigatorKey of your MaterialApp to enable Request & Response Stopper Dialogs.
And if you don't want to use it, you can pass it as null.
Implementation
const RequestsInspector({
super.key,
bool enabled = true,
bool hideInspectorBanner = false,
ShowInspectorOn showInspectorOn = ShowInspectorOn.Both,
required Widget child,
bool defaultTreeViewEnabled = true,
GlobalKey<NavigatorState>? navigatorKey,
bool defaultExpandChildren = true,
bool defaultIsDarkMode = true,
}) : _enabled = enabled,
_hideInspectorBanner = hideInspectorBanner,
_showInspectorOn = showInspectorOn,
_child = child,
_navigatorKey = navigatorKey,
_defaultTreeViewEnabled = defaultTreeViewEnabled,
_defaultExpandChildren = defaultExpandChildren,
_defaultIsDarkMode = defaultIsDarkMode;