processLatestWithReport method
Future<AsyncChartProcessingResult?>
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
)?,
})
Implementation
Future<AsyncChartProcessingResult?> processLatestWithReport(
List<Series> series, {
int renderThreshold = 500,
SamplingStrategy? samplingStrategy,
int? startIndex,
int? endIndex,
bool? useCache,
String? dataSignature,
bool? useIsolate,
int? isolatePointThreshold,
void Function(AsyncChartProcessingReport report)? onStaleReport,
}) {
return runLatest(
(_) => AsyncChartProcessor.processAsyncWithReport(
series,
renderThreshold: renderThreshold,
samplingStrategy: samplingStrategy,
startIndex: startIndex,
endIndex: endIndex,
useCache: useCache,
dataSignature: dataSignature,
useIsolate: useIsolate,
isolatePointThreshold: isolatePointThreshold,
),
onStale: (value) => onStaleReport?.call(value.report),
);
}