CorextraDevTools class
The one place DevTools keeps its settings and captured data, in memory only for this app run.
DevTools is on in debug builds and off in release, so it never records in production unless you turn it on.
Example:
// Turn it on for a QA build
CorextraDevTools.instance.enabled = true;
// Read what was captured
final requests = CorextraDevTools.instance.network.events;
Properties
- enabled ↔ bool
-
Whether DevTools records data and shows its bubble; defaults to on in debug builds only.
getter/setter pair
-
enabledNotifier
→ ValueNotifier<
bool> -
Notifies listeners when enabled changes.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- logs → LogEntryStore
-
The captured log lines.
final
- network → NetworkEventStore
-
The captured requests and socket messages.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- themeMode ↔ ThemeMode
-
The panel's own light or dark theme, separate from your app's; defaults to dark.
getter/setter pair
-
themeModeNotifier
→ ValueNotifier<
ThemeMode> -
Notifies listeners when themeMode changes.
final
Methods
-
handleBackPress(
) → bool - Calls the newest back handler, if any, and returns whether one ran.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pushBackHandler(
VoidCallback handler) → VoidCallback -
Makes Android's back button call
handleruntil the returned callback is called; used by the panel's nested views. -
resetAll(
) → void - Clears every captured request and log line; enabled stays as it is.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → CorextraDevTools
-
The shared DevTools instance.
final