ChartExporter class

Utility class for capturing high-DPI snapshots of the chart canvas.

Constructors

ChartExporter()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

capturePng(GlobalKey<State<StatefulWidget>> repaintBoundaryKey, {double pixelRatio = 2.0}) → Future<Uint8List?>
Captures the widget subtree wrapped in a RepaintBoundary as PNG byte data. pixelRatio controls the resolution multiplier (default: 2.0 for retina clarity).
showSnapshotDialog({required BuildContext context, required Uint8List pngBytes, String symbol = 'Chart'}) → Future<void>
Displays a modern, dark-themed preview modal of the captured chart snapshot.