AsyncChartProcessingController class

Guards async chart-processing calls so stale results cannot overwrite newer UI state.

The underlying isolate work cannot be force-cancelled, but this controller gives widgets a cheap request-generation check before applying results.

Properties

generation int
no setter
hashCode int
The hash code for this object.
no setterinherited
isDisposed bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

beginRequest() int
cancelPending() → void
dispose() → void
isCurrent(int generation) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processLatest(List<Series> series, {int renderThreshold = 500, SamplingStrategy? samplingStrategy, int? startIndex, int? endIndex, bool? useCache, String? dataSignature, bool? useIsolate, int? isolatePointThreshold, void onReport(AsyncChartProcessingReport report)?, void onStaleReport(AsyncChartProcessingReport report)?}) Future<ChartProcessingResult?>
processLatestWithReport(List<Series> series, {int renderThreshold = 500, SamplingStrategy? samplingStrategy, int? startIndex, int? endIndex, bool? useCache, String? dataSignature, bool? useIsolate, int? isolatePointThreshold, void onStaleReport(AsyncChartProcessingReport report)?}) Future<AsyncChartProcessingResult?>
runLatest<T>(Future<T> operation(int generation), {void onStale(T value)?}) Future<T?>
toString() String
A string representation of this object.
inherited

Operators

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