dev library

Lark Dev — Development tools, logging, error boundaries.

Import separately to enable tree-shaking in production.

Classes

ComponentInfo
Information about a registered component.
ComponentNode
A node in the component tree.
ComponentRegistry
Registry of all mounted Component instances.
ComponentSnapshot
Snapshot of a component tree.
ComponentTree
The full component tree.
DevMessageV2
Enhanced dev message with granular update information.
DevTools
Developer tools manager.
DevToolsState
Tracks all reactive state for DevTools inspection.
ErrorBoundary
A component that catches errors in its children.
ErrorContext
Error context for reporting.
ErrorReport
Error report for tracking.
ErrorReporter
Error reporting configuration.
HmrState
HMR state manager for preserving state across hot reloads.
LogConfig
Global logging configuration.
Logger
A logger instance.
NetworkRequest
A captured network request.
NetworkTracker
Tracks network requests for DevTools.
PerformanceMetrics
Performance metrics collector.
RefSnapshot
Snapshot of a ref for DevTools display.
SourceLocation
Source location for error reporting.
StateChange
A state change event.
TimelineEntry
A single entry on the timeline.
TimelineEvent
Timeline event for debugging.
TimelineProfiler
Performance timeline profiler for DevTools.
TimelineRecording
A complete timeline recording session.

Enums

DevMessageSeverity
Severity levels for dev messages.
DevMessageType
Types of dev messages.
LogLevel
Log levels.
NetworkRequestStatus
Status of a network request.
StateChangeType
Type of state change event.
TimelineEntryType
Type of timeline entry.

Extension Types

DartLoader

Properties

appLog Logger
Global app logger.
final
devTools DevTools
Shorthand to access devtools.
no setter
hotReloadVersion Ref<int>
Global signal that increments whenever a hot reload occurs.
final

Functions

createLogger(String name) Logger
Creates a logger for a component.
reportError(Object error, [StackTrace? stackTrace, String? context]) → void
Reports an error with optional context.