DebugProfileRegistry class

Properties

currentProfile → DebugProfile
Get current (active) profile
no setter
currentProfileIndex ↔ int
Current profile index
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
hasProfiles → bool
Whether any profiles are present.
no setter
profiles → List<DebugProfile>
Read-only list of profiles.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Clears all profiles and resets index.
getProfileByIndex(int index) → DebugProfile
Safely get profile by index (throws if invalid)
initialize({List<DebugProfile>? initialProfiles, int profileIndex = 0, bool clearExisting = false}) → void
Optional one-time initialization. Call this early (e.g. in main) if you want to seed profiles. Calling initialize more than once will append profiles unless you pass clearExisting:true.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
register(DebugProfile profile) → void
Register a single profile at runtime.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

instance → DebugProfileRegistry
no setter