ChartExportRequest.png constructor

const ChartExportRequest.png({
  1. required GlobalKey<State<StatefulWidget>> boundaryKey,
  2. String? filename,
  3. double pixelRatio = 2.0,
  4. Duration? timeout,
  5. ChartExportCancellationToken? cancellationToken,
})

Implementation

const ChartExportRequest.png({
  required GlobalKey this.boundaryKey,
  this.filename,
  this.pixelRatio = 2.0,
  this.timeout,
  this.cancellationToken,
}) : format = ChartExportFormat.png,
     config = null,
     jsonConfig = null,
     rows = null,
     categoryLabels = null,
     sheetName = 'Chart Data',
     delimiter = ',',
     lineEnding = '\r\n',
     jpegQuality = 90,
     jpegBackgroundColor = Colors.white;