SwiftDevTools class
DevTools integration for Swift Flutter
Provides zero-overhead debugging when disabled. All tracking is lazy-loaded and conditional.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- isEnabled → bool
-
Check if DevTools is enabled
no setter
- isTrackingDependencies → bool
-
Check if dependency tracking is enabled (internal use)
no setter
- isTrackingPerformance → bool
-
Check if performance tracking is enabled (internal use)
no setter
- isTrackingStateHistory → bool
-
Check if state history tracking is enabled (internal use)
no setter
Static Methods
-
clear(
) → void - Clear all tracking data
-
disable(
) → void - Disable DevTools integration (zero overhead)
-
enable(
{bool trackDependencies = true, bool trackStateHistory = false, bool trackPerformance = true}) → void - Enable DevTools integration
-
getAllReduxStores(
) → List< Map< String, dynamic> > - Get all Redux stores
-
getComputedId(
Computed computed) → String - Get unique ID for Computed (internal use)
-
getControllerId(
dynamic controller) → String - Get unique ID for Controller (internal use)
-
getDependencyGraph(
) → Map< String, dynamic> - Get dependency graph as JSON
-
getMarkId(
dynamic mark) → String - Get unique ID for Mark (internal use)
-
getPerformanceReport(
) → Map< String, dynamic> - Get performance report
-
getRxId(
Rx rx) → String -
getStateHistory(
{int? limit}) → List< Map< String, dynamic> > - Get state change history
-
getStateInspector(
) → Map< String, dynamic> - Get state inspector data
-
getSummary(
) → Map< String, dynamic> - Get summary statistics
-
getSwiftId(
SwiftValue swift) → String - Get unique ID for Rx (internal use)
-
getTimeTravelData(
String storeId) → Map< String, dynamic> ? - Get time-travel debugging data (for ReduxStore)
-
registerReduxStore(
ReduxStore store, String? name) → void - Register ReduxStore for time-travel debugging
-
setMaxHistorySize(
int size) → void - Set maximum history size
-
setMaxPerformanceEvents(
int size) → void - Set maximum performance events
-
trackComputedCreation(
Computed computed, String? name) → void - Track Computed creation (only called when enabled) Internal use only - called from Computed constructor
-
trackControllerCreation(
dynamic controller) → void - Track Controller creation (only called when enabled) Internal use only - called from SwiftController constructor
-
trackControllerDisposal(
dynamic controller) → void - Track Controller disposal (only called when enabled) Internal use only - called from SwiftController dispose
-
trackDependency(
String dependentId, String dependencyId) → void - Track dependency relationship (only called when enabled) Internal use only - called from Rx/Computed value getters
-
trackMarkCreation(
dynamic mark, String name) → void - Track Mark widget creation (internal use)
-
trackPerformanceEvent(
String name, Duration duration, Map< String, dynamic> ? metadata) → void - Track performance event (only called when enabled) Internal use only - called from performance-critical paths
-
trackStateChange(
String id, dynamic oldValue, dynamic newValue) → void - Track state change (only called when enabled) Internal use only - called from Rx value setter
-
trackSwiftCreation(
SwiftValue swift, String? name) → void - Track SwiftValue creation (only called when enabled) Internal use only - called from SwiftValue constructor