LoadingStateDump class

Represents the complete loading state dump with both text and JSON representations

Constructors

LoadingStateDump({required DateTime startTime, required Duration totalDuration, required List<LoadingPhase> phases, required List<LoadingNetworkRequest> networkRequests, required List<LoadingError> errors, required List<LoadingScriptElement> scriptElements, LoadingStateDumpOptions options = const LoadingStateDumpOptions(), LoadingState? dumper})

Properties

categorizedNetworkRequests Map<String, List<LoadingNetworkRequest>>
Categorizes network requests by type
no setter
dumper LoadingState?
final
errors List<LoadingError>
final
hashCode int
The hash code for this object.
no setterinherited
hasLCPFinalized bool
Checks if LCP has been finalized (not just a candidate)
no setter
hasReachedFCP bool
Checks if the loading has reached the FCP (First Contentful Paint) stage
no setter
hasReachedFP bool
Checks if the loading has reached the FP (First Paint) stage
no setter
hasReachedLCP bool
Checks if the loading has reached the LCP (Largest Contentful Paint) stage
no setter
lcpContentSize double?
Gets the size of the largest contentful element if available
no setter
lcpElementTag String?
Gets the LCP element tag if available
no setter
lcpTime double?
Gets the LCP time in milliseconds if available
no setter
networkRequests List<LoadingNetworkRequest>
final
options LoadingStateDumpOptions
final
phases List<LoadingPhase>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scriptElements List<LoadingScriptElement>
final
shouldDisplayAsTwoParts bool
Determines if the loading should be displayed as two separate parts Returns true if in preload mode and pause is significant (> 100ms)
no setter
startTime DateTime
final
totalDuration Duration
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override
toStringFiltered({String? grep, bool caseSensitive = false, bool invert = false}) String
Returns the pretty string representation filtered by a simple grep keyword. If grep is null or empty, returns the full string. When caseSensitive is false (default), matching is case-insensitive. If invert is true, returns lines that do NOT match the keyword.

Operators

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