DeveloperToolsMemoryLog<T> class

Generic in-memory log for developer tools extensions.

Extensions (Riverpod, Console, Network, etc.) use this to store log entries that can be displayed in the overlay panel and/or the docked log viewer.

Listen to listenable to rebuild UI when entries are added or cleared.

Constructors

DeveloperToolsMemoryLog()
Creates a new in-memory log.
factory

Properties

entries List<T>
Read-only view of all recorded entries.
no setter
hashCode int
The hash code for this object.
no setterinherited
hasReceivedEvents bool
Whether at least one event has been recorded since app start.
no setter
listenable ValueListenable<int>
Listenable that notifies when add or clear is called.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(T entry) → void
Adds an entry to the log.
clear() → void
Clears all entries from the log.
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