RequestsInspector constructor

const RequestsInspector({
  1. Key? key,
  2. bool enabled = false,
  3. bool hideInspectorBanner = false,
  4. ShowInspectorOn showInspectorOn = ShowInspectorOn.Both,
  5. required Widget child,
  6. required GlobalKey<NavigatorState>? navigatorKey,
})

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;