init static method
void
init({})
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;
}