TrackedState<T> class

Generic wrapper around state values that records update metadata.

Use this when you want to surface stale UI risk diagnostics for state that should trigger a widget rebuild.

Constructors

TrackedState(T initialValue, {String? tag, String? description})

Properties

description String?
Optional human-readable description for diagnostics.
final
hashCode int
The hash code for this object.
no setterinherited
lastUpdated DateTime
Timestamp of the most recent assignment.
getter/setter pair
metadata StateChangeMetadata
Latest metadata for this tracked state instance.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tag String
Tag used to associate the state with a rebuild target.
final
updateCount int
Number of updates applied to this tracked state instance.
getter/setter pair
value ↔ T
Current state value.
getter/setter pair

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