copyWith method

  1. @override
MonaStyleAttributesModel copyWith({
  1. String? documentID,
  2. String? appId,
  3. BackgroundModel? formBackground,
  4. BackgroundModel? appBackground,
  5. RgbModel? formGroupTitleColor,
  6. RgbModel? formFieldTextColor,
  7. RgbModel? formFieldHeaderColor,
  8. RgbModel? formFieldFocusColor,
  9. BackgroundModel? listBackground,
  10. RgbModel? listTextItemColor,
  11. RgbModel? floatingButtonForegroundColor,
  12. RgbModel? floatingButtonBackgroundColor,
  13. RgbModel? dividerColor,
  14. BackgroundModel? topicContainerBackground,
  15. BackgroundModel? actionContainerBackground,
  16. BackgroundModel? appBarBG,
  17. RgbModel? appBarIconColor,
  18. RgbModel? appBarSelectedIconColor,
  19. RgbModel? appBarMenuBackgroundColor,
  20. BackgroundModel? bottomNavigationBarBG,
  21. BackgroundModel? drawerBG,
  22. BackgroundModel? drawerHeaderBG,
  23. BackgroundModel? profileDrawerBG,
  24. BackgroundModel? profileDrawerHeaderBG,
  25. RgbModel? backgroundColorHomeMenu,
  26. FontModel? h1,
  27. FontModel? h2,
  28. FontModel? h3,
  29. FontModel? h4,
  30. FontModel? h5,
  31. FontModel? textFieldHeader,
  32. FontModel? fontText,
  33. FontModel? fontSmallText,
  34. FontModel? fontHighlight1,
  35. FontModel? fontHighlight2,
  36. FontModel? fontLink,
  37. PageTransitionAnimation? routeBuilder,
  38. int? routeAnimationDuration,
  39. RgbModel? dialogBackgroundColor,
  40. RgbModel? dialogSeperatorColor,
  41. RgbModel? popupMenuButtonColor,
  42. RgbModel? textBubbleBackgroundColor,
  43. RgbModel? dropdownButtonnColor,
  44. RgbModel? listTileColor,
})
override

Implementation

@override
MonaStyleAttributesModel copyWith({
  String? documentID,
  String? appId,
  BackgroundModel? formBackground,
  BackgroundModel? appBackground,
  RgbModel? formGroupTitleColor,
  RgbModel? formFieldTextColor,
  RgbModel? formFieldHeaderColor,
  RgbModel? formFieldFocusColor,
  BackgroundModel? listBackground,
  RgbModel? listTextItemColor,
  RgbModel? floatingButtonForegroundColor,
  RgbModel? floatingButtonBackgroundColor,
  RgbModel? dividerColor,
  BackgroundModel? topicContainerBackground,
  BackgroundModel? actionContainerBackground,
  BackgroundModel? appBarBG,
  RgbModel? appBarIconColor,
  RgbModel? appBarSelectedIconColor,
  RgbModel? appBarMenuBackgroundColor,
  BackgroundModel? bottomNavigationBarBG,
  BackgroundModel? drawerBG,
  BackgroundModel? drawerHeaderBG,
  BackgroundModel? profileDrawerBG,
  BackgroundModel? profileDrawerHeaderBG,
  RgbModel? backgroundColorHomeMenu,
  FontModel? h1,
  FontModel? h2,
  FontModel? h3,
  FontModel? h4,
  FontModel? h5,
  FontModel? textFieldHeader,
  FontModel? fontText,
  FontModel? fontSmallText,
  FontModel? fontHighlight1,
  FontModel? fontHighlight2,
  FontModel? fontLink,
  PageTransitionAnimation? routeBuilder,
  int? routeAnimationDuration,
  RgbModel? dialogBackgroundColor,
  RgbModel? dialogSeperatorColor,
  RgbModel? popupMenuButtonColor,
  RgbModel? textBubbleBackgroundColor,
  RgbModel? dropdownButtonnColor,
  RgbModel? listTileColor,
}) {
  return MonaStyleAttributesModel(
    documentID: documentID ?? this.documentID,
    appId: appId ?? this.appId,
    formBackground: formBackground ?? this.formBackground,
    appBackground: appBackground ?? this.appBackground,
    formGroupTitleColor: formGroupTitleColor ?? this.formGroupTitleColor,
    formFieldTextColor: formFieldTextColor ?? this.formFieldTextColor,
    formFieldHeaderColor: formFieldHeaderColor ?? this.formFieldHeaderColor,
    formFieldFocusColor: formFieldFocusColor ?? this.formFieldFocusColor,
    listBackground: listBackground ?? this.listBackground,
    listTextItemColor: listTextItemColor ?? this.listTextItemColor,
    floatingButtonForegroundColor:
        floatingButtonForegroundColor ?? this.floatingButtonForegroundColor,
    floatingButtonBackgroundColor:
        floatingButtonBackgroundColor ?? this.floatingButtonBackgroundColor,
    dividerColor: dividerColor ?? this.dividerColor,
    topicContainerBackground:
        topicContainerBackground ?? this.topicContainerBackground,
    actionContainerBackground:
        actionContainerBackground ?? this.actionContainerBackground,
    appBarBG: appBarBG ?? this.appBarBG,
    appBarIconColor: appBarIconColor ?? this.appBarIconColor,
    appBarSelectedIconColor:
        appBarSelectedIconColor ?? this.appBarSelectedIconColor,
    appBarMenuBackgroundColor:
        appBarMenuBackgroundColor ?? this.appBarMenuBackgroundColor,
    bottomNavigationBarBG:
        bottomNavigationBarBG ?? this.bottomNavigationBarBG,
    drawerBG: drawerBG ?? this.drawerBG,
    drawerHeaderBG: drawerHeaderBG ?? this.drawerHeaderBG,
    profileDrawerBG: profileDrawerBG ?? this.profileDrawerBG,
    profileDrawerHeaderBG:
        profileDrawerHeaderBG ?? this.profileDrawerHeaderBG,
    backgroundColorHomeMenu:
        backgroundColorHomeMenu ?? this.backgroundColorHomeMenu,
    h1: h1 ?? this.h1,
    h2: h2 ?? this.h2,
    h3: h3 ?? this.h3,
    h4: h4 ?? this.h4,
    h5: h5 ?? this.h5,
    textFieldHeader: textFieldHeader ?? this.textFieldHeader,
    fontText: fontText ?? this.fontText,
    fontSmallText: fontSmallText ?? this.fontSmallText,
    fontHighlight1: fontHighlight1 ?? this.fontHighlight1,
    fontHighlight2: fontHighlight2 ?? this.fontHighlight2,
    fontLink: fontLink ?? this.fontLink,
    routeBuilder: routeBuilder ?? this.routeBuilder,
    routeAnimationDuration:
        routeAnimationDuration ?? this.routeAnimationDuration,
    dialogBackgroundColor:
        dialogBackgroundColor ?? this.dialogBackgroundColor,
    dialogSeperatorColor: dialogSeperatorColor ?? this.dialogSeperatorColor,
    popupMenuButtonColor: popupMenuButtonColor ?? this.popupMenuButtonColor,
    textBubbleBackgroundColor:
        textBubbleBackgroundColor ?? this.textBubbleBackgroundColor,
    dropdownButtonnColor: dropdownButtonnColor ?? this.dropdownButtonnColor,
    listTileColor: listTileColor ?? this.listTileColor,
  );
}