ChartExporter class
Utility class for capturing high-DPI snapshots of the chart canvas and exporting data.
Constructors
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< repaintBoundaryKey, {double pixelRatio = 2.0}) → Future<StatefulWidget> >Uint8List?> -
Captures the widget subtree wrapped in a RepaintBoundary as PNG byte data.
pixelRatiocontrols the resolution multiplier (default: 2.0 for retina clarity). -
exportCandlesToCsv(
List< Candle> candles, {bool includeHeaders = true}) → String - Exports a list of Candle records into standard RFC 4180 CSV format. Columns: timestamp,open,high,low,close,volume
-
showSnapshotDialog(
{required BuildContext context, required Uint8List pngBytes, String symbol = 'Chart'}) → Future< void> - Displays a modern, dark-themed preview modal of the captured chart snapshot.