copyWith method

AxisStyle copyWith({
  1. int? maxLabels,
  2. int? labelCount,
  3. bool? skipFirstLabel,
  4. bool? skipLastLabel,
  5. bool? labelOnDatapoints,
  6. int? labelIncrementMultiples,
  7. LabelFunction? labelProvider,
  8. TextStyle? textStyle,
  9. bool? drawLabels,
  10. EdgeInsets? labelInsets,
  11. Color? lineColor,
  12. double? lineSize,
  13. double? absoluteMin,
  14. double? clampedMin,
  15. double? absoluteMax,
  16. double? marginAbove,
  17. double? marginBelow,
  18. AxisValuePredicate? applyMarginBelow,
  19. double? minimumRange,
})

Implementation

AxisStyle copyWith(
    {int? maxLabels,
    int? labelCount,
    bool? skipFirstLabel,
    bool? skipLastLabel,
    bool? labelOnDatapoints,
    int? labelIncrementMultiples,
    LabelFunction? labelProvider,
    TextStyle? textStyle,
    bool? drawLabels,
    EdgeInsets? labelInsets,
    Color? lineColor,
    double? lineSize,
    double? absoluteMin,
    double? clampedMin,
    double? absoluteMax,
    double? marginAbove,
    double? marginBelow,
    AxisValuePredicate? applyMarginBelow,
    double? minimumRange}) {
  return AxisStyle(
      textStyle: textStyle ?? this.textStyle,
      labelInsets: labelInsets ?? this.labelInsets,
      skipFirstLabel: skipFirstLabel ?? this.skipFirstLabel,
      skipLastLabel: skipLastLabel ?? this.skipLastLabel,
      labelOnDatapoints: labelOnDatapoints ?? this.labelOnDatapoints,
      labelIncrementMultiples:
          labelIncrementMultiples ?? this.labelIncrementMultiples,
      labelProvider: labelProvider ?? this.labelProvider,
      lineColor: lineColor ?? this.lineColor,
      lineSize: lineSize ?? this.lineSize,
      drawLabels: drawLabels ?? this.drawLabels,
      maxLabels: maxLabels ?? this.maxLabels,
      labelCount: labelCount ?? this.labelCount,
      absoluteMin: absoluteMin ?? this.absoluteMin,
      clampedMin: clampedMin ?? this.clampedMin,
      absoluteMax: absoluteMax ?? this.absoluteMax,
      marginAbove: marginAbove ?? this.marginAbove,
      marginBelow: marginBelow ?? this.marginBelow,
      applyMarginBelow: applyMarginBelow ?? this.applyMarginBelow,
      minimumRange: minimumRange ?? this.minimumRange);
}