init static method

void init({
  1. bool enable = true,
  2. bool enableShake = true,
  3. bool enableLongPress = true,
  4. bool enableThreeFingerTap = true,
  5. Duration longPressDuration = const Duration(seconds: 2),
  6. Color? backgroundColor,
  7. Color? accentColor,
})

Initialize the debug panel with configuration.

enable - Whether the debug panel is enabled. enableShake - Whether shake gesture is enabled. enableLongPress - Whether long press gesture is enabled. enableThreeFingerTap - Whether three-finger tap gesture is enabled. longPressDuration - Duration for long press to trigger. backgroundColor - Custom background color for the panel. accentColor - Custom accent color for the panel.

Implementation

static void init({
  bool enable = true,
  bool enableShake = true,
  bool enableLongPress = true,
  bool enableThreeFingerTap = true,
  Duration longPressDuration = const Duration(seconds: 2),
  Color? backgroundColor,
  Color? accentColor,
}) {
  _config = DebugPanelConfig(
    enable: enable,
    enableShake: enableShake,
    enableLongPress: enableLongPress,
    enableThreeFingerTap: enableThreeFingerTap,
    longPressDuration: longPressDuration,
    backgroundColor: backgroundColor,
    accentColor: accentColor,
  );
  _initialized = true;
}