processLatest method
Future<ChartProcessingResult?>
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
Implementation
Future<ChartProcessingResult?> processLatest(
List<Series> series, {
int renderThreshold = 500,
SamplingStrategy? samplingStrategy,
int? startIndex,
int? endIndex,
bool? useCache,
String? dataSignature,
bool? useIsolate,
int? isolatePointThreshold,
void Function(AsyncChartProcessingReport report)? onReport,
void Function(AsyncChartProcessingReport report)? onStaleReport,
}) async {
final output = await processLatestWithReport(
series,
renderThreshold: renderThreshold,
samplingStrategy: samplingStrategy,
startIndex: startIndex,
endIndex: endIndex,
useCache: useCache,
dataSignature: dataSignature,
useIsolate: useIsolate,
isolatePointThreshold: isolatePointThreshold,
onStaleReport: onStaleReport,
);
if (output == null) return null;
onReport?.call(output.report);
return output.result;
}