ChartWidgetController class

Controls export for a mounted ChartWidget via its repaintBoundaryKey.

Constructors

ChartWidgetController()

Properties

hashCode int
The hash code for this object.
no setterinherited
repaintBoundaryKey GlobalKey<State<StatefulWidget>>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

exportPdf({String? title, String? subtitle, double pixelRatio = 3, PdfPageFormat pageFormat = PdfPageFormat.a4}) Future<Uint8List>
PDF with an embedded chart image and optional header text.
exportPdfFromConfig(ChartConfig config, {double pixelRatio = 3, PdfPageFormat pageFormat = PdfPageFormat.a4}) Future<Uint8List>
Convenience: export using config title / subtitle when not overridden.
exportPng({double pixelRatio = 3}) Future<Uint8List>
PNG bytes of the chart canvas (excludes overlay tooltips).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerPrepareExport(VoidCallback prepare) → void
toString() String
A string representation of this object.
inherited
unregisterPrepareExport() → void

Operators

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