WatchdogEntry class

One still-live tracked resource — owner is free text (typically a runtimeType.toString() or a widget's debug label), not a live reference to the resource itself: this class never holds the actual Ticker/AnimationController/etc, only metadata about it, so tracking something can never itself keep it alive or leak it further.

Constructors

WatchdogEntry({required int id, required WatchdogKind kind, required String owner, required String? label, required int createdAtMs})
const

Properties

createdAtMs → int
final
hashCode → int
The hash code for this object.
no setterinherited
id → int
final
kind → WatchdogKind
final
label → String?
Optional caller-chosen name — this is what MemoryWatchdog.allow matches against, so a caller wanting an allowlist exemption must give a stable, deliberate label (not rely on owner alone, which might be shared by many unrelated instances of the same class).
final
owner → String
final
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