RequestsInspector constructor
const
RequestsInspector({
- Key? key,
- bool enabled = false,
- bool hideInspectorBanner = false,
- ShowInspectorOn showInspectorOn = ShowInspectorOn.Both,
- required Widget child,
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 = false,
bool hideInspectorBanner = false,
ShowInspectorOn showInspectorOn = ShowInspectorOn.Both,
required Widget child,
required GlobalKey<NavigatorState>? navigatorKey,
}) : _enabled = enabled,
_hideInspectorBanner = hideInspectorBanner,
_showInspectorOn = showInspectorOn,
_child = child,
_navigatorKey = navigatorKey;