WebViewDiagnostics class
Optional load / smoothness diagnostics for a WebAppShell.
Off by default. When enabled, the shell emits one WebViewPerfSnapshot per full document load — not per SPA history change, and not per DOM mutation.
- Annotations
Constructors
- WebViewDiagnostics({bool enabled = false, bool logInDebug = true, bool measureSmoothness = true})
-
const
Properties
- enabled → bool
-
Whether the injected script should collect timing and smoothness.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- logInDebug → bool
-
Print WebViewPerfSnapshot.toDebugLine via debugPrint in debug builds.
final
- measureSmoothness → bool
-
Sample rAF FPS, long tasks and CLS after load.
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.
override
Constants
- debug → const WebViewDiagnostics
- Collect numbers and print a debug line in debug builds.
- off → const WebViewDiagnostics
- Collect nothing. The default.