merge method

  1. @override
FlyColorToken merge(
  1. FlyToken<Color> other
)
override

Merge another token into this one (right side wins)

Implementation

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

  return copyWith(
    red50: other.red50,
    red100: other.red100,
    red200: other.red200,
    red300: other.red300,
    red400: other.red400,
    red500: other.red500,
    red600: other.red600,
    red700: other.red700,
    red800: other.red800,
    red900: other.red900,
    red950: other.red950,
    orange50: other.orange50,
    orange100: other.orange100,
    orange200: other.orange200,
    orange300: other.orange300,
    orange400: other.orange400,
    orange500: other.orange500,
    orange600: other.orange600,
    orange700: other.orange700,
    orange800: other.orange800,
    orange900: other.orange900,
    orange950: other.orange950,
    amber50: other.amber50,
    amber100: other.amber100,
    amber200: other.amber200,
    amber300: other.amber300,
    amber400: other.amber400,
    amber500: other.amber500,
    amber600: other.amber600,
    amber700: other.amber700,
    amber800: other.amber800,
    amber900: other.amber900,
    amber950: other.amber950,
    yellow50: other.yellow50,
    yellow100: other.yellow100,
    yellow200: other.yellow200,
    yellow300: other.yellow300,
    yellow400: other.yellow400,
    yellow500: other.yellow500,
    yellow600: other.yellow600,
    yellow700: other.yellow700,
    yellow800: other.yellow800,
    yellow900: other.yellow900,
    yellow950: other.yellow950,
    lime50: other.lime50,
    lime100: other.lime100,
    lime200: other.lime200,
    lime300: other.lime300,
    lime400: other.lime400,
    lime500: other.lime500,
    lime600: other.lime600,
    lime700: other.lime700,
    lime800: other.lime800,
    lime900: other.lime900,
    lime950: other.lime950,
    green50: other.green50,
    green100: other.green100,
    green200: other.green200,
    green300: other.green300,
    green400: other.green400,
    green500: other.green500,
    green600: other.green600,
    green700: other.green700,
    green800: other.green800,
    green900: other.green900,
    green950: other.green950,
    emerald50: other.emerald50,
    emerald100: other.emerald100,
    emerald200: other.emerald200,
    emerald300: other.emerald300,
    emerald400: other.emerald400,
    emerald500: other.emerald500,
    emerald600: other.emerald600,
    emerald700: other.emerald700,
    emerald800: other.emerald800,
    emerald900: other.emerald900,
    emerald950: other.emerald950,
    teal50: other.teal50,
    teal100: other.teal100,
    teal200: other.teal200,
    teal300: other.teal300,
    teal400: other.teal400,
    teal500: other.teal500,
    teal600: other.teal600,
    teal700: other.teal700,
    teal800: other.teal800,
    teal900: other.teal900,
    teal950: other.teal950,
    cyan50: other.cyan50,
    cyan100: other.cyan100,
    cyan200: other.cyan200,
    cyan300: other.cyan300,
    cyan400: other.cyan400,
    cyan500: other.cyan500,
    cyan600: other.cyan600,
    cyan700: other.cyan700,
    cyan800: other.cyan800,
    cyan900: other.cyan900,
    cyan950: other.cyan950,
    sky50: other.sky50,
    sky100: other.sky100,
    sky200: other.sky200,
    sky300: other.sky300,
    sky400: other.sky400,
    sky500: other.sky500,
    sky600: other.sky600,
    sky700: other.sky700,
    sky800: other.sky800,
    sky900: other.sky900,
    sky950: other.sky950,
    blue50: other.blue50,
    blue100: other.blue100,
    blue200: other.blue200,
    blue300: other.blue300,
    blue400: other.blue400,
    blue500: other.blue500,
    blue600: other.blue600,
    blue700: other.blue700,
    blue800: other.blue800,
    blue900: other.blue900,
    blue950: other.blue950,
    indigo50: other.indigo50,
    indigo100: other.indigo100,
    indigo200: other.indigo200,
    indigo300: other.indigo300,
    indigo400: other.indigo400,
    indigo500: other.indigo500,
    indigo600: other.indigo600,
    indigo700: other.indigo700,
    indigo800: other.indigo800,
    indigo900: other.indigo900,
    indigo950: other.indigo950,
    violet50: other.violet50,
    violet100: other.violet100,
    violet200: other.violet200,
    violet300: other.violet300,
    violet400: other.violet400,
    violet500: other.violet500,
    violet600: other.violet600,
    violet700: other.violet700,
    violet800: other.violet800,
    violet900: other.violet900,
    violet950: other.violet950,
    purple50: other.purple50,
    purple100: other.purple100,
    purple200: other.purple200,
    purple300: other.purple300,
    purple400: other.purple400,
    purple500: other.purple500,
    purple600: other.purple600,
    purple700: other.purple700,
    purple800: other.purple800,
    purple900: other.purple900,
    purple950: other.purple950,
    fuchsia50: other.fuchsia50,
    fuchsia100: other.fuchsia100,
    fuchsia200: other.fuchsia200,
    fuchsia300: other.fuchsia300,
    fuchsia400: other.fuchsia400,
    fuchsia500: other.fuchsia500,
    fuchsia600: other.fuchsia600,
    fuchsia700: other.fuchsia700,
    fuchsia800: other.fuchsia800,
    fuchsia900: other.fuchsia900,
    fuchsia950: other.fuchsia950,
    pink50: other.pink50,
    pink100: other.pink100,
    pink200: other.pink200,
    pink300: other.pink300,
    pink400: other.pink400,
    pink500: other.pink500,
    pink600: other.pink600,
    pink700: other.pink700,
    pink800: other.pink800,
    pink900: other.pink900,
    pink950: other.pink950,
    rose50: other.rose50,
    rose100: other.rose100,
    rose200: other.rose200,
    rose300: other.rose300,
    rose400: other.rose400,
    rose500: other.rose500,
    rose600: other.rose600,
    rose700: other.rose700,
    rose800: other.rose800,
    rose900: other.rose900,
    rose950: other.rose950,
    slate50: other.slate50,
    slate100: other.slate100,
    slate200: other.slate200,
    slate300: other.slate300,
    slate400: other.slate400,
    slate500: other.slate500,
    slate600: other.slate600,
    slate700: other.slate700,
    slate800: other.slate800,
    slate900: other.slate900,
    slate950: other.slate950,
    gray50: other.gray50,
    gray100: other.gray100,
    gray200: other.gray200,
    gray300: other.gray300,
    gray400: other.gray400,
    gray500: other.gray500,
    gray600: other.gray600,
    gray700: other.gray700,
    gray800: other.gray800,
    gray900: other.gray900,
    gray950: other.gray950,
    zinc50: other.zinc50,
    zinc100: other.zinc100,
    zinc200: other.zinc200,
    zinc300: other.zinc300,
    zinc400: other.zinc400,
    zinc500: other.zinc500,
    zinc600: other.zinc600,
    zinc700: other.zinc700,
    zinc800: other.zinc800,
    zinc900: other.zinc900,
    zinc950: other.zinc950,
    neutral50: other.neutral50,
    neutral100: other.neutral100,
    neutral200: other.neutral200,
    neutral300: other.neutral300,
    neutral400: other.neutral400,
    neutral500: other.neutral500,
    neutral600: other.neutral600,
    neutral700: other.neutral700,
    neutral800: other.neutral800,
    neutral900: other.neutral900,
    neutral950: other.neutral950,
    stone50: other.stone50,
    stone100: other.stone100,
    stone200: other.stone200,
    stone300: other.stone300,
    stone400: other.stone400,
    stone500: other.stone500,
    stone600: other.stone600,
    stone700: other.stone700,
    stone800: other.stone800,
    stone900: other.stone900,
    stone950: other.stone950,
    black: other.black,
    white: other.white,
    extras: {...extras, ...other.extras},
  );
}