WidgetQueryRunner class

The one place that knows the toolkit's execution choreography: list sources → validate → project the date range → fetch records → execute. Its seams (listSources, fetchRecords, executeQuery) are injectable so the same orchestration works in tests, in-process, or across an isolate.

Constructors

WidgetQueryRunner({required ListSourcesFn listSources, required FetchRecordsFn fetchRecords, ExecuteQueryFn? executeQuery})

Properties

executeQuery ExecuteQueryFn
Runs a prepared request, synchronously or asynchronously. Defaults to the in-process AnalyticsExecutor; the runner awaits the result either way.
final
fetchRecords FetchRecordsFn
Fetches normalized records for a source id.
final
hashCode int
The hash code for this object.
no setterinherited
listSources ListSourcesFn
Returns the current source catalog.
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
runPaired(PairedQuerySpec payload, {required DateRangeMode dateRangeMode, (DateTime, DateTime)? pageRange, DateTime? earliestDataDate, DateTime? today, DateTime? asOf}) Future<Result<BridgeResult, BridgeError>>
Runs a paired query.
runSingle(AnalyticsQuerySpec query, {required DateRangeMode dateRangeMode, (DateTime, DateTime)? pageRange, DateTime? earliestDataDate, DateTime? today, DateTime? asOf}) Future<Result<BridgeResult, BridgeError>>
Runs a single query end to end.
toString() String
A string representation of this object.
inherited

Operators

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