merge method

  1. @override
FlySpacingToken merge(
  1. FlyToken<double> other
)
override

Merge another token into this one (right side wins)

Implementation

@override
FlySpacingToken merge(FlyToken<double> other) {
  if (other is! FlySpacingToken) return this;

  return copyWith(
    base: other.base,
    px: other.px,
    s0: other.s0,
    s05: other.s05,
    s1: other.s1,
    s15: other.s15,
    s2: other.s2,
    s25: other.s25,
    s3: other.s3,
    s35: other.s35,
    s4: other.s4,
    s5: other.s5,
    s6: other.s6,
    s7: other.s7,
    s8: other.s8,
    s9: other.s9,
    s10: other.s10,
    s11: other.s11,
    s12: other.s12,
    s14: other.s14,
    s16: other.s16,
    s20: other.s20,
    s24: other.s24,
    s28: other.s28,
    s32: other.s32,
    s36: other.s36,
    s40: other.s40,
    s44: other.s44,
    s48: other.s48,
    s52: other.s52,
    s56: other.s56,
    s60: other.s60,
    s64: other.s64,
    s72: other.s72,
    s80: other.s80,
    s96: other.s96,
    extras: {...extras, ...other.extras},
  );
}