UIContextProvider class

Captures a snapshot of UI‑related data that can help reproduce rendering, sizing, and theming issues. Marked as manualReportOnly to avoid heavy work during automatic reporting.

Inheritance

Constructors

UIContextProvider(BuildContext context, {Map<String, dynamic> additional()?})
Creates a UI context provider bound to the given BuildContext, with an optional hook for additional custom fields.
const

Properties

context BuildContext
Build context used to resolve UI-specific data.
final
hashCode int
The hash code for this object.
no setterinherited
manualReportOnly bool
Limits automatic collection; UI data is fetched only when the user explicitly triggers a manual report.
no setteroverride
name String
The key under which this provider's map is attached to the report context.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getData() Map<String, dynamic>
Collects context data. Implementations must never throw; if an internal error occurs, return an empty map instead.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validateData(Map<String, dynamic> data) bool
Optional validation; return true to keep the data in the report. The default keeps any non‑empty map.
inherited

Operators

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