NumberLine.copyFrom constructor
NumberLine.copyFrom(
- NumberLine mob
Implementation
NumberLine.copyFrom(NumberLine mob)
: xMin = mob.xMin,
xMax = mob.xMax,
unitSize = mob.unitSize,
includeTicks = mob.includeTicks,
tickSize = mob.tickSize,
tickFrequency = mob.tickFrequency,
leftmostTick = mob.leftmostTick,
numbersWithElongatedTicks = [...mob.numbersWithElongatedTicks],
includeNumbers = mob.includeNumbers,
numbersToShow = mob.numbersToShow,
longTickMultiple = mob.longTickMultiple,
numberAtCenter = mob.numberAtCenter,
numberScaleVal = mob.numberScaleVal,
labelDirection = mob.labelDirection.copy(),
lineToNumberBuff = mob.lineToNumberBuff,
includeTip = mob.includeTip,
decimalNumberConfig = mob.decimalNumberConfig,
excludeZeroFromDefaultNumbers = mob.excludeZeroFromDefaultNumbers,
tipWidth = mob.tipWidth,
tipHeight = mob.tipHeight,
tickMarks = mob.tickMarks != null
? [...mob.tickMarks!.map((tick) => tick.copy())]
: null,
bigTickMarks = mob.bigTickMarks != null
? [...mob.bigTickMarks!.map((tick) => tick.copy())]
: null,
super.copyFrom(mob);