copyWith method
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,
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);
}