copyWith method
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,
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,
);
}