copyWith method

  1. @override
UiTheme copyWith({
  1. Color? appBarColor,
  2. Color? appBarSecondaryColor,
  3. Color? appBarDataColor,
  4. Color? appBarSecondaryDataColor,
  5. Color? backGroundColor,
  6. Color? backGroundSecondaryColor,
  7. Color? splashColor,
  8. Color? editTextField,
  9. Color? forgetText,
  10. Color? cardColor,
  11. Color? btnColor,
  12. Color? grey,
  13. Color? transp,
  14. Color? colorF5,
  15. Color? cardBaground,
  16. Color? cardbagroundColor,
  17. Color? red,
  18. Color? yellow,
  19. Color? exploreColorColor,
  20. Color? bgcolor,
  21. Color? green,
  22. Color? termandcondation,
  23. Color? orange,
  24. Color? primaryBlue,
  25. Color? greyHint,
  26. Color? retake,
  27. Color? border,
  28. Color? divider,
  29. Color? greynew,
  30. Color? greySetting,
  31. Color? contcolor,
  32. Color? greenlight,
  33. Color? newgrey,
  34. Color? resultcolor,
  35. Color? txtfieldtext,
  36. Color? blackText,
  37. 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,
  );
}