ShakeChuckerConfigs class

Provides configuration utilities and integration helpers for Chucker within the dio_extended package.

This class allows the host application to configure Chucker without importing Chucker directly, ensuring that the package remains self-contained while exposing only the features needed by the app.

Usage:

void main() {
  ShakeChuckerConfigs.initialize(
    showOnRelease: false,
    showOnNotification: true,
  );

  runApp(MyApp());
}

Then inside your MaterialApp:

MaterialApp(
  navigatorObservers: [
    ShakeChuckerConfigs.navigatorObserver,
  ],
);

This ensures that Chucker is properly initialized before runApp() and captures navigation history.

Constructors

ShakeChuckerConfigs()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

Returns the NavigatorObserver used by Chucker to log navigation events for inspection inside the Chucker UI.
no setter

Static Methods

initialize({required bool showOnRelease, required bool showNotification}) → void
Initializes Chucker configuration.