merge method
Implementation
AxisConfig merge(AxisConfig other) {
var color = this.color ?? other.color;
var unitSize = this.unitSize ?? other.unitSize;
var includeTicks = this.includeTicks ?? other.includeTicks;
var tickSize = this.tickSize ?? other.tickSize;
var tickFrequency = this.tickFrequency ?? other.tickFrequency;
var leftmostTick = this.leftmostTick ?? other.leftmostTick;
var numbersWithElongatedTicks =
this.numbersWithElongatedTicks ?? other.numbersWithElongatedTicks;
var includeNumbers = this.includeNumbers ?? other.includeNumbers;
var numbersToShow = this.numbersToShow ?? other.numbersToShow;
var longTickMultiple = this.longTickMultiple ?? other.longTickMultiple;
var numberAtCenter = this.numberAtCenter ?? other.numberAtCenter;
var numberScaleVal = this.numberScaleVal ?? other.numberScaleVal;
var labelDirection = this.labelDirection ?? other.labelDirection;
var lineToNumberBuff = this.lineToNumberBuff ?? other.lineToNumberBuff;
var includeTip = this.includeTip ?? other.includeTip;
var tipWidth = this.tipWidth ?? other.tipWidth;
var tipHeight = this.tipHeight ?? other.tipHeight;
var decimalNumberConfig =
this.decimalNumberConfig ?? other.decimalNumberConfig;
var excludeZeroFromDefaultNumbers = this.excludeZeroFromDefaultNumbers ??
other.excludeZeroFromDefaultNumbers;
var strokeWidth = this.strokeWidth ?? other.strokeWidth;
return AxisConfig(
color: color,
unitSize: unitSize,
includeTicks: includeTicks,
tickSize: tickSize,
tickFrequency: tickFrequency,
leftmostTick: leftmostTick,
numbersWithElongatedTicks: numbersWithElongatedTicks,
includeNumbers: includeNumbers,
numbersToShow: numbersToShow,
longTickMultiple: longTickMultiple,
numberAtCenter: numberAtCenter,
numberScaleVal: numberScaleVal,
labelDirection: labelDirection,
lineToNumberBuff: lineToNumberBuff,
includeTip: includeTip,
tipWidth: tipWidth,
tipHeight: tipHeight,
decimalNumberConfig: decimalNumberConfig,
excludeZeroFromDefaultNumbers: excludeZeroFromDefaultNumbers,
strokeWidth: strokeWidth,
);
}