copyWith method

  1. @override
ThemeExtension<CollactionTheme> copyWith({
  1. Color? background,
  2. Color? secondary,
  3. Color? primary0,
  4. Color? primary100,
  5. Color? primary200,
  6. Color? primary300,
  7. Color? primary400,
  8. Color? primary500,
  9. Color? accent100,
  10. Color? accent200,
  11. Color? accent300,
  12. Color? accent400,
  13. Color? accent500,
  14. Color? negative100,
  15. Color? negative200,
  16. Color? negative300,
  17. Color? negative400,
  18. Color? negative500,
  19. Color? warning100,
  20. Color? warning200,
  21. Color? warning300,
  22. Color? warning400,
  23. Color? warning500,
  24. Color? positive100,
  25. Color? positive200,
  26. Color? positive300,
  27. Color? positive400,
  28. Color? positive500,
  29. Color? gold500,
  30. Color? diamond500,
  31. Color? silver500,
  32. Color? bronze500,
  33. TextStyle? largeTitle,
  34. TextStyle? headline,
  35. TextStyle? body,
  36. TextStyle? subheadline,
  37. TextStyle? footnote,
  38. TextStyle? caption1,
  39. TextStyle? caption2,
  40. TextStyle? title1,
  41. TextStyle? title2,
  42. TextStyle? title3,
  43. double? inputBorderRadius,
  44. double? buttonBorderRadius,
  45. Size? elevatedButtonSize,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
ThemeExtension<CollactionTheme> copyWith({
  Color? background,
  Color? secondary,
  Color? primary0,
  Color? primary100,
  Color? primary200,
  Color? primary300,
  Color? primary400,
  Color? primary500,
  Color? accent100,
  Color? accent200,
  Color? accent300,
  Color? accent400,
  Color? accent500,
  Color? negative100,
  Color? negative200,
  Color? negative300,
  Color? negative400,
  Color? negative500,
  Color? warning100,
  Color? warning200,
  Color? warning300,
  Color? warning400,
  Color? warning500,
  Color? positive100,
  Color? positive200,
  Color? positive300,
  Color? positive400,
  Color? positive500,
  Color? gold500,
  Color? diamond500,
  Color? silver500,
  Color? bronze500,
  TextStyle? largeTitle,
  TextStyle? headline,
  TextStyle? body,
  TextStyle? subheadline,
  TextStyle? footnote,
  TextStyle? caption1,
  TextStyle? caption2,
  TextStyle? title1,
  TextStyle? title2,
  TextStyle? title3,
  double? inputBorderRadius,
  double? buttonBorderRadius,
  Size? elevatedButtonSize,
}) {
  return CollactionTheme(
    background: background ?? this.background,
    secondary: secondary ?? this.secondary,
    primary0: primary0 ?? this.primary0,
    primary100: primary100 ?? this.primary100,
    primary200: primary200 ?? this.primary200,
    primary300: primary300 ?? this.primary300,
    primary400: primary400 ?? this.primary400,
    primary500: primary500 ?? this.primary500,
    accent100: accent100 ?? this.accent100,
    accent200: accent200 ?? this.accent200,
    accent300: accent300 ?? this.accent300,
    accent400: accent400 ?? this.accent400,
    accent500: accent500 ?? this.accent500,
    negative100: negative100 ?? this.negative100,
    negative200: negative200 ?? this.negative200,
    negative300: negative300 ?? this.negative300,
    negative400: negative400 ?? this.negative400,
    negative500: negative500 ?? this.negative500,
    warning100: warning100 ?? this.warning100,
    warning200: warning200 ?? this.warning200,
    warning300: warning300 ?? this.warning300,
    warning400: warning400 ?? this.warning400,
    warning500: warning500 ?? this.warning500,
    positive100: positive100 ?? this.positive100,
    positive200: positive200 ?? this.positive200,
    positive300: positive300 ?? this.positive300,
    positive400: positive400 ?? this.positive400,
    positive500: positive500 ?? this.positive500,
    gold500: gold500 ?? this.gold500,
    diamond500: diamond500 ?? this.diamond500,
    silver500: silver500 ?? this.silver500,
    bronze500: bronze500 ?? this.bronze500,
    largeTitle: largeTitle ?? this.largeTitle,
    headline: headline ?? this.headline,
    body: body ?? this.body,
    subheadline: subheadline ?? this.subheadline,
    footnote: footnote ?? this.footnote,
    caption1: caption1 ?? this.caption1,
    caption2: caption2 ?? this.caption2,
    title1: title1 ?? this.title1,
    title2: title2 ?? this.title2,
    title3: title3 ?? this.title3,
    inputBorderRadius: inputBorderRadius ?? this.inputBorderRadius,
    buttonBorderRadius: buttonBorderRadius ?? this.buttonBorderRadius,
    elevatedButtonSize: elevatedButtonSize ?? this.elevatedButtonSize,
  );
}