RebuildTracker class

Tracks widget rebuild counts.

Use recordRebuild manually or wrap widgets with RebuildCounter to automatically count rebuilds.

Constructors

RebuildTracker()

Properties

hashCode int
The hash code for this object.
no setterinherited
rebuildsByWidget Map<String, int>
Per-widget rebuild counts.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalRebuilds int
Total rebuilds recorded.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordRebuild([String? widgetName]) → void
Record a single rebuild, optionally tagged with widgetName.
reset() → void
Reset all counters.
toString() String
A string representation of this object.
inherited

Operators

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