StateInspector class
Inspects and monitors state changes in the app
Properties
-
changes
→ Stream<
StateChange> -
Stream of state changes
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
stateSnapshots
→ Map<
String, dynamic> -
Map of all state snapshots
no setter
Methods
-
captureState(
String key, dynamic state) → void - Capture a snapshot of the current state
-
clearStates(
) → void - Clear all state snapshots
-
dispose(
) → void - Dispose the inspector
-
getChangesForKey(
String key) → List< StateChange> - Get state changes for a specific key
-
getState(
String key) → dynamic - Get the current state for a given key
-
hasStateChanged(
String key, dynamic newState) → bool - Check if state has changed for a given key
-
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
- instance → StateInspector
-
no setter