copyWith method

WeColorScheme copyWith({
  1. Brightness? brightness,
  2. Color? primary,
  3. Color? secondary,
  4. Color? success,
  5. Color? warning,
  6. Color? info,
  7. Color? danger,
  8. Color? fatal,
  9. Color? primaryText,
  10. Color? regularText,
  11. Color? secondaryText,
  12. Color? placeholderText,
  13. Color? disabledText,
  14. Color? darkerBorder,
  15. Color? darkBorder,
  16. Color? baseBorder,
  17. Color? lightBorder,
  18. Color? lighterBorder,
  19. Color? extraLightBorder,
  20. Color? darkerFill,
  21. Color? darkFill,
  22. Color? baseFill,
  23. Color? lightFill,
  24. Color? lighterFill,
  25. Color? extraLightFill,
  26. Color? blankFill,
  27. Color? pageBackground,
  28. Color? baseBackground,
  29. Color? overlayBackground,
  30. Color? mask,
})

Implementation

WeColorScheme copyWith({
  Brightness? brightness,
  Color? primary,
  Color? secondary,
  Color? success,
  Color? warning,
  Color? info,
  Color? danger,
  Color? fatal,
  Color? primaryText,
  Color? regularText,
  Color? secondaryText,
  Color? placeholderText,
  Color? disabledText,
  Color? darkerBorder,
  Color? darkBorder,
  Color? baseBorder,
  Color? lightBorder,
  Color? lighterBorder,
  Color? extraLightBorder,
  Color? darkerFill,
  Color? darkFill,
  Color? baseFill,
  Color? lightFill,
  Color? lighterFill,
  Color? extraLightFill,
  Color? blankFill,
  Color? pageBackground,
  Color? baseBackground,
  Color? overlayBackground,
  Color? mask,
}) {
  return WeColorScheme(
    brightness: brightness ?? this.brightness,
    primary: primary ?? this.primary,
    secondary: secondary ?? this.secondary,
    success: success ?? this.success,
    warning: warning ?? this.warning,
    info: info ?? this.info,
    danger: danger ?? this.danger,
    fatal: fatal ?? this.fatal,
    primaryText: primaryText ?? this.primaryText,
    regularText: regularText ?? this.regularText,
    secondaryText: secondaryText ?? this.secondaryText,
    placeholderText: placeholderText ?? this.placeholderText,
    disabledText: disabledText ?? this.disabledText,
    darkerBorder: darkerBorder ?? this.darkerBorder,
    darkBorder: darkBorder ?? this.darkBorder,
    baseBorder: baseBorder ?? this.baseBorder,
    lightBorder: lightBorder ?? this.lightBorder,
    lighterBorder: lighterBorder ?? this.lighterBorder,
    extraLightBorder: extraLightBorder ?? this.extraLightBorder,
    darkerFill: darkerFill ?? this.darkerFill,
    darkFill: darkFill ?? this.darkFill,
    baseFill: baseFill ?? this.baseFill,
    lightFill: lightFill ?? this.lightFill,
    lighterFill: lighterFill ?? this.lighterFill,
    extraLightFill: extraLightFill ?? this.extraLightFill,
    blankFill: blankFill ?? this.blankFill,
    pageBackground: pageBackground ?? this.pageBackground,
    baseBackground: baseBackground ?? this.baseBackground,
    overlayBackground: overlayBackground ?? this.overlayBackground,
    mask: mask ?? this.mask,
  );
}