initialize static method

void initialize({
  1. required bool showOnRelease,
  2. required bool showNotification,
})

Initializes Chucker configuration.

Call this before runApp() to ensure Chucker is properly configured during Flutter app startup.

Parameters:

  • showOnRelease Determines whether the Chucker UI should be accessible in release builds. Set to true to enable Chucker in release mode.

  • showNotification Controls whether Chucker should display the floating notification overlay that allows opening the Chucker inspector.

Example:

ShakeChuckerConfigs.setup(
  showOnRelease: false,
  showNotification: true,
);

Implementation

static void initialize({
  required bool showOnRelease,
  required bool showNotification,
}) {
  ChuckerFlutter.showOnRelease = showOnRelease;
  ChuckerFlutter.showNotification = showNotification;
}