copyWith method

  1. @override
ColorExtension copyWith({
  1. Color? primaryBgColor,
})
override

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

Implementation

@override
ColorExtension copyWith({Color? primaryBgColor}) {
  return ColorExtension(
    primaryBgColor: primaryBgColor,
    primaryColor: primaryColor,
    backgroundColor: backgroundColor,
    disabledBgColor: disabledBgColor,
    disabledColor: disabledColor,
    white: white,
    black: black,
    red: red,
    fireOrange: fireOrange,
    orange: orange,
    tangerineYellow: tangerineYellow,
    yellow: yellow,
    green: green,
    mint: mint,
    brightBlue: brightBlue,
    blue: blue,
    opRed: opRed,
    opFireOrange: opFireOrange,
    opOrange: opOrange,
    opTangerineYellow: opTangerineYellow,
    opYellow: opYellow,
    opGreen: opGreen,
    opMint: opMint,
    opBrightBlue: opBrightBlue,
    opBlue: opBlue,
    neutralWhite: neutralWhite,
    neutralBgColor: neutralBgColor,
    neutralBgColor2: neutralBgColor2,
    neutralLines: neutralLines,
    opNeutralLines: opNeutralLines,
    neutralIconCaption: neutralIconCaption,
    gradientRedOrange: gradientRedOrange,
    gradientOrangeYellow: gradientOrangeYellow,
    gradientGreenMint: gradientGreenMint,
    gradientBrightBlueBlue: gradientBrightBlueBlue,
  );
}