DevToolsService class

Service to manage dev tools functionality

Constructors

DevToolsService()
factory

Properties

currentLongPressCount int
Get current long press count (for debugging/feedback)
no setter
hashCode int
The hash code for this object.
no setterinherited
isEnabled bool
Check if dev tools are enabled Disabled in release mode by default
no setter
isVisible bool
Check if dev tools are visible
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

hideDevTools() → void
Hide dev tools overlay
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerLongPress() bool
Register a long press and check if dev tools should open Returns true if dev tools should be opened (2 long presses within 3 seconds)
registerTap() bool
Legacy method - Register a tap (kept for compatibility)
resetLongPresses() → void
Reset long press count
showDevTools(BuildContext context, {VoidCallback? onEnvironmentChanged}) → void
Show dev tools overlay
toggleDevTools(BuildContext context, {VoidCallback? onEnvironmentChanged}) → void
Toggle dev tools visibility
toString() String
A string representation of this object.
inherited

Operators

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

Constants

longPressWindowMs → const int
Time window for long presses (in milliseconds)
requiredLongPresses → const int
Number of long presses required to open dev tools