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