copyWith method

TafsirStyle copyWith({
  1. Widget? tafsirNameWidget,
  2. Widget? fontSizeWidget,
  3. String? translateName,
  4. String? tafsirName,
  5. Color? currentTafsirColor,
  6. Color? textTitleColor,
  7. Color? backgroundTitleColor,
  8. Color? selectedTafsirColor,
  9. Color? unSelectedTafsirColor,
  10. Color? selectedTafsirTextColor,
  11. Color? unSelectedTafsirTextColor,
  12. Color? selectedTafsirBorderColor,
  13. Color? unSelectedTafsirBorderColor,
  14. Color? backgroundColor,
  15. Color? textColor,
  16. Color? tafsirBackgroundColor,
  17. Color? dividerColor,
  18. double? fontSize,
  19. String? footnotesName,
  20. double? horizontalMargin,
  21. double? verticalMargin,
  22. String? tafsirIsEmptyNote,
  23. double? heightOfBottomSheet,
  24. double? widthOfBottomSheet,
  25. double? changeTafsirDialogHeight,
  26. double? changeTafsirDialogWidth,
  27. Widget? fontSizeIconWidget,
  28. Color? fontSizeBackgroundColor,
  29. Color? fontSizeThumbColor,
  30. Color? fontSizeActiveTrackColor,
  31. Color? fontSizeInactiveTrackColor,
  32. double? fontSizeIconSize,
})

Implementation

TafsirStyle copyWith({
  Widget? tafsirNameWidget,
  Widget? fontSizeWidget,
  String? translateName,
  String? tafsirName,
  Color? currentTafsirColor,
  Color? textTitleColor,
  Color? backgroundTitleColor,
  Color? selectedTafsirColor,
  Color? unSelectedTafsirColor,
  Color? selectedTafsirTextColor,
  Color? unSelectedTafsirTextColor,
  Color? selectedTafsirBorderColor,
  Color? unSelectedTafsirBorderColor,
  Color? backgroundColor,
  Color? textColor,
  Color? tafsirBackgroundColor,
  Color? dividerColor,
  double? fontSize,
  String? footnotesName,
  double? horizontalMargin,
  double? verticalMargin,
  String? tafsirIsEmptyNote,
  double? heightOfBottomSheet,
  double? widthOfBottomSheet,
  double? changeTafsirDialogHeight,
  double? changeTafsirDialogWidth,
  Widget? fontSizeIconWidget,
  Color? fontSizeBackgroundColor,
  Color? fontSizeThumbColor,
  Color? fontSizeActiveTrackColor,
  Color? fontSizeInactiveTrackColor,
  double? fontSizeIconSize,
}) {
  return TafsirStyle(
    tafsirNameWidget: tafsirNameWidget ?? this.tafsirNameWidget,
    fontSizeWidget: fontSizeWidget ?? this.fontSizeWidget,
    translateName: translateName ?? this.translateName,
    tafsirName: tafsirName ?? this.tafsirName,
    currentTafsirColor: currentTafsirColor ?? this.currentTafsirColor,
    textTitleColor: textTitleColor ?? this.textTitleColor,
    backgroundTitleColor: backgroundTitleColor ?? this.backgroundTitleColor,
    selectedTafsirColor: selectedTafsirColor ?? this.selectedTafsirColor,
    unSelectedTafsirColor:
        unSelectedTafsirColor ?? this.unSelectedTafsirColor,
    selectedTafsirTextColor:
        selectedTafsirTextColor ?? this.selectedTafsirTextColor,
    unSelectedTafsirTextColor:
        unSelectedTafsirTextColor ?? this.unSelectedTafsirTextColor,
    selectedTafsirBorderColor:
        selectedTafsirBorderColor ?? this.selectedTafsirBorderColor,
    unSelectedTafsirBorderColor:
        unSelectedTafsirBorderColor ?? this.unSelectedTafsirBorderColor,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    textColor: textColor ?? this.textColor,
    tafsirBackgroundColor:
        tafsirBackgroundColor ?? this.tafsirBackgroundColor,
    dividerColor: dividerColor ?? this.dividerColor,
    fontSize: fontSize ?? this.fontSize,
    footnotesName: footnotesName ?? this.footnotesName,
    horizontalMargin: horizontalMargin ?? this.horizontalMargin,
    verticalMargin: verticalMargin ?? this.verticalMargin,
    tafsirIsEmptyNote: tafsirIsEmptyNote ?? this.tafsirIsEmptyNote,
    heightOfBottomSheet: heightOfBottomSheet ?? this.heightOfBottomSheet,
    widthOfBottomSheet: widthOfBottomSheet ?? this.widthOfBottomSheet,
    changeTafsirDialogHeight:
        changeTafsirDialogHeight ?? this.changeTafsirDialogHeight,
    changeTafsirDialogWidth:
        changeTafsirDialogWidth ?? this.changeTafsirDialogWidth,
    fontSizeIconWidget: fontSizeIconWidget ?? this.fontSizeIconWidget,
    fontSizeBackgroundColor:
        fontSizeBackgroundColor ?? this.fontSizeBackgroundColor,
    fontSizeThumbColor: fontSizeThumbColor ?? this.fontSizeThumbColor,
    fontSizeActiveTrackColor:
        fontSizeActiveTrackColor ?? this.fontSizeActiveTrackColor,
    fontSizeInactiveTrackColor:
        fontSizeInactiveTrackColor ?? this.fontSizeInactiveTrackColor,
    fontSizeIconSize: fontSizeIconSize ?? this.fontSizeIconSize,
  );
}