copyWith method
UiTheme
copyWith({
- Color? appBarColor,
- Color? appBarSecondaryColor,
- Color? appBarDataColor,
- Color? appBarSecondaryDataColor,
- Color? backGroundColor,
- Color? backGroundSecondaryColor,
- Color? splashColor,
- Color? editTextField,
- Color? forgetText,
- Color? cardColor,
- Color? btnColor,
- Color? grey,
- Color? transp,
- Color? colorF5,
- Color? cardBaground,
- Color? cardbagroundColor,
- Color? red,
- Color? yellow,
- Color? exploreColorColor,
- Color? bgcolor,
- Color? green,
- Color? termandcondation,
- Color? orange,
- Color? primaryBlue,
- Color? greyHint,
- Color? retake,
- Color? border,
- Color? divider,
- Color? greynew,
- Color? greySetting,
- Color? contcolor,
- Color? greenlight,
- Color? newgrey,
- Color? resultcolor,
- Color? txtfieldtext,
- Color? blackText,
- Color? white,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
UiTheme copyWith({
Color? appBarColor,
Color? appBarSecondaryColor,
Color? appBarDataColor,
Color? appBarSecondaryDataColor,
Color? backGroundColor,
Color? backGroundSecondaryColor,
Color? splashColor,
Color? editTextField,
Color? forgetText,
Color? cardColor,
Color? btnColor,
Color? grey,
Color? transp,
Color? colorF5,
Color? cardBaground,
Color? cardbagroundColor,
Color? red,
Color? yellow,
Color? exploreColorColor,
Color? bgcolor,
Color? green,
Color? termandcondation,
Color? orange,
Color? primaryBlue,
Color? greyHint,
Color? retake,
Color? border,
Color? divider,
Color? greynew,
Color? greySetting,
Color? contcolor,
Color? greenlight,
Color? newgrey,
Color? resultcolor,
Color? txtfieldtext,
Color? blackText,
Color? white,
}) {
return UiTheme(
appBarColor: appBarColor ?? this.appBarColor,
appBarSecondaryColor: appBarSecondaryColor ?? this.appBarSecondaryColor,
appBarDataColor: appBarDataColor ?? this.appBarDataColor,
appBarSecondaryDataColor: appBarSecondaryDataColor ?? this.appBarSecondaryDataColor,
backGroundColor: backGroundColor ?? this.backGroundColor,
backGroundSecondaryColor: backGroundSecondaryColor ?? this.backGroundSecondaryColor,
splashColor: splashColor ?? this.splashColor,
editTextField: editTextField ?? this.editTextField,
forgetText: forgetText ?? this.forgetText,
cardColor: cardColor ?? this.cardColor,
btnColor: btnColor ?? this.btnColor,
grey: grey ?? this.grey,
transp: transp ?? this.transp,
colorF5: colorF5 ?? this.colorF5,
cardBaground: cardBaground ?? this.cardBaground,
cardbagroundColor: cardbagroundColor ?? this.cardbagroundColor,
red: red ?? this.red,
yellow: yellow ?? this.yellow,
exploreColorColor: exploreColorColor ?? this.exploreColorColor,
bgcolor: bgcolor ?? this.bgcolor,
green: green ?? this.green,
termandcondation: termandcondation ?? this.termandcondation,
orange: orange ?? this.orange,
primaryBlue: primaryBlue ?? this.primaryBlue,
greyHint: greyHint ?? this.greyHint,
retake: retake ?? this.retake,
border: border ?? this.border,
divider: divider ?? this.divider,
greynew: greynew ?? this.greynew,
greySetting: greySetting ?? this.greySetting,
contcolor: contcolor ?? this.contcolor,
greenlight: greenlight ?? this.greenlight,
newgrey: newgrey ?? this.newgrey,
resultcolor: resultcolor ?? this.resultcolor,
txtfieldtext: txtfieldtext ?? this.txtfieldtext,
blackText: blackText ?? this.blackText,
white: white ?? this.white,
);
}