ChartBase constructor

const ChartBase({
  1. Key? key,
  2. required List<ChartLayer> layers,
  3. EdgeInsets padding = EdgeInsets.zero,
  4. Labels? leftLabels,
  5. Labels? rightLabels,
  6. Labels? topLabels,
  7. Labels? bottomLabels,
  8. BoundsAdjuster adjustBounds = AdjustBounds.noAdjustment,
  9. IntervalsProvider xIntervalsProvider(
    1. BoundingBox bounds,
    2. List<ChartItem> items
    ) = OutlineXIntervals.create,
  10. IntervalsProvider yIntervalsProvider(
    1. BoundingBox bounds,
    2. List<ChartItem> items
    ) = OutlineYIntervals.create,
  11. required Widget builder(
    1. BuildContext context,
    2. BoundingBox bounds,
    3. List<ChartItem> items,
    4. EdgeInsets contentPadding,
    5. IntervalsProvider xIntervals,
    6. IntervalsProvider yIntervals,
    7. Widget? leftLabels,
    8. Widget? rightLabels,
    9. Widget? topLabels,
    10. Widget? bottomLabels,
    ),
})

Implementation

const ChartBase({
  super.key,
  required this.layers,
  this.padding = EdgeInsets.zero,
  this.leftLabels,
  this.rightLabels,
  this.topLabels,
  this.bottomLabels,
  this.adjustBounds = AdjustBounds.noAdjustment,
  this.xIntervalsProvider = OutlineXIntervals.create,
  this.yIntervalsProvider = OutlineYIntervals.create,
  required this.builder,
});