ChartLegend constructor

ChartLegend({
  1. TextStyle? textStyle,
  2. AlignmentGeometry position = pw.Alignment.topRight,
  3. Axis direction = pw.Axis.vertical,
  4. BoxDecoration? decoration,
  5. EdgeInsetsGeometry padding = const pw.EdgeInsets.all(5),
})

Creates a ChartLegend.

Implementation

ChartLegend({
  this.textStyle,
  this.position = pw.Alignment.topRight,
  this.direction = pw.Axis.vertical,
  this.decoration,
  this.padding = const pw.EdgeInsets.all(5),
});