ExportableTenunChart constructor
const
ExportableTenunChart({
- Key? key,
- BaseChartConfig? config,
- Map<
String, dynamic> ? jsonConfig, - ExportableChartController? exportController,
- List<
ChartExportFormat> formats = ChartExportControls.defaultFormats, - List<
String> ? categoryLabels, - String filename = 'chart_export',
- String sheetName = 'Chart Data',
- String delimiter = ',',
- String lineEnding = '\r\n',
- double pixelRatio = 2,
- int jpegQuality = 90,
- Color jpegBackgroundColor = Colors.white,
- Duration? exportTimeout,
- Duration? deliveryTimeout,
- ChartExportCancellationToken? exportCancellationToken,
- ChartExportJobPreflightPolicy exportPreflightPolicy = ChartExportJobPreflightPolicy.failOnBlockers,
- bool copyTextExportsToClipboard = true,
- bool showExportControls = true,
- bool showExportStatus = true,
- bool showExportPreflightDiagnostics = true,
- bool showBatchExportButton = true,
- bool showArchiveExportButton = false,
- bool showCancelExportButton = false,
- bool stopBatchOnFirstFailure = false,
- bool stopDeliveryBatchOnFirstFailure = false,
- String batchExportLabel = 'All',
- String archiveExportLabel = 'ZIP',
- String cancelExportLabel = 'Cancel',
- String cancelExportReason = 'Export cancelled by user.',
- String? archiveFilename,
- bool includeArchiveManifest = true,
- String archiveManifestFilename = ChartExportArchive.defaultManifestFilename,
- Axis controlsDirection = Axis.horizontal,
- ChartExportStartedHandler? onExportStarted,
- ChartExportResultHandler? onExportResult,
- ChartExportJobPlanHandler? onExportJobPlan,
- ChartExportJobProgressHandler? onExportJobProgress,
- ChartExportJobResultHandler? onExportJobResult,
- ChartExportBatchStartedHandler? onBatchExportStarted,
- ChartExportBatchProgressHandler? onBatchExportProgress,
- ChartExportBatchResultHandler? onBatchExportResult,
- ChartExportJobPlanHandler? onBatchExportJobPlan,
- ChartExportJobProgressHandler? onBatchExportJobProgress,
- ChartExportJobResultHandler? onBatchExportJobResult,
- ChartExportArchiveStartedHandler? onArchiveExportStarted,
- ChartExportJobPlanHandler? onArchiveExportJobPlan,
- ChartExportJobProgressHandler? onArchiveExportJobProgress,
- ChartExportJobResultHandler? onArchiveExportJobResult,
- ChartExportArchiveResultHandler? onArchiveExportResult,
- Widget? controlsLeading,
- Widget? controlsTrailing,
- MainAxisAlignment controlsMainAxisAlignment = MainAxisAlignment.start,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.stretch,
- double controlsSpacing = 8,
- ButtonStyle? exportButtonStyle,
- ChartExportDeliveryAdapter? exportDeliveryAdapter,
- ChartExportDeliveryResultHandler? onExportDeliveryResult,
- ChartExportDeliveryResultHandler? onArchiveExportDeliveryResult,
- ChartExportDeliveryBatchProgressHandler? onExportDeliveryBatchProgress,
- ChartExportDeliveryBatchResultHandler? onExportDeliveryBatchResult,
- ChartExportControlsErrorHandler? onExportError,
- double? width,
- double? height,
- EdgeInsetsGeometry? chartPadding,
- EdgeInsetsGeometry? padding,
- bool validatePayload = false,
- bool strictValidation = false,
- int validationReportMaxIssues = 3,
- TenunDiagnosticFallbackOptions diagnosticFallbackOptions = const TenunDiagnosticFallbackOptions(),
- void onValidationResult(
- ValidationResult result
- void onPayloadNormalizationResult(
- PayloadNormalizationResult result
- void onRuntimeDiagnostics(
- ChartRuntimeDiagnostics diagnostics
- ChartRuntimePerformancePolicy runtimePerformancePolicy = ChartRuntimePerformancePolicy.defaults,
- bool catchRenderErrors = false,
- bool autoNormalizePayload = false,
- bool sanitizeTradingPayload = true,
- bool dropUnsupportedSampling = true,
- int? normalizeDefaultThreshold,
- ChartDataMode normalizeDefaultMode = ChartDataMode.auto,
- PayloadNormalizationOptions? normalizationOptions,
- Widget errorBuilder(
- BuildContext context,
- Object error
Implementation
const ExportableTenunChart({
super.key,
this.config,
this.jsonConfig,
this.exportController,
this.formats = ChartExportControls.defaultFormats,
this.categoryLabels,
this.filename = 'chart_export',
this.sheetName = 'Chart Data',
this.delimiter = ',',
this.lineEnding = '\r\n',
this.pixelRatio = 2,
this.jpegQuality = 90,
this.jpegBackgroundColor = Colors.white,
this.exportTimeout,
this.deliveryTimeout,
this.exportCancellationToken,
this.exportPreflightPolicy = ChartExportJobPreflightPolicy.failOnBlockers,
this.copyTextExportsToClipboard = true,
this.showExportControls = true,
this.showExportStatus = true,
this.showExportPreflightDiagnostics = true,
this.showUnavailableFormatTooltips = true,
this.showBatchExportButton = true,
this.showArchiveExportButton = false,
this.showCancelExportButton = false,
this.stopBatchOnFirstFailure = false,
this.stopDeliveryBatchOnFirstFailure = false,
this.batchExportLabel = 'All',
this.archiveExportLabel = 'ZIP',
this.cancelExportLabel = 'Cancel',
this.cancelExportReason = 'Export cancelled by user.',
this.archiveFilename,
this.includeArchiveManifest = true,
this.archiveManifestFilename = ChartExportArchive.defaultManifestFilename,
this.controlsDirection = Axis.horizontal,
this.onExportStarted,
this.onExportResult,
this.onExportJobPlan,
this.onExportJobProgress,
this.onExportJobResult,
this.onBatchExportStarted,
this.onBatchExportProgress,
this.onBatchExportResult,
this.onBatchExportJobPlan,
this.onBatchExportJobProgress,
this.onBatchExportJobResult,
this.onArchiveExportStarted,
this.onArchiveExportJobPlan,
this.onArchiveExportJobProgress,
this.onArchiveExportJobResult,
this.onArchiveExportResult,
this.controlsLeading,
this.controlsTrailing,
this.controlsMainAxisAlignment = MainAxisAlignment.start,
this.crossAxisAlignment = CrossAxisAlignment.stretch,
this.controlsSpacing = 8,
this.exportButtonStyle,
this.exportDeliveryAdapter,
this.onExportDeliveryResult,
this.onArchiveExportDeliveryResult,
this.onExportDeliveryBatchProgress,
this.onExportDeliveryBatchResult,
this.onExportError,
this.width,
this.height,
this.chartPadding,
this.padding,
this.validatePayload = false,
this.strictValidation = false,
this.validationReportMaxIssues = 3,
this.diagnosticFallbackOptions = const TenunDiagnosticFallbackOptions(),
this.onValidationResult,
this.onPayloadNormalizationResult,
this.onRuntimeDiagnostics,
this.runtimePerformancePolicy = ChartRuntimePerformancePolicy.defaults,
this.catchRenderErrors = false,
this.autoNormalizePayload = false,
this.sanitizeTradingPayload = true,
this.dropUnsupportedSampling = true,
this.normalizeDefaultThreshold,
this.normalizeDefaultMode = ChartDataMode.auto,
this.normalizationOptions,
this.errorBuilder,
});