copyWith method

AyahTafsirInlineStyle copyWith({
  1. Color? backgroundColor,
  2. Color? ayahTextColor,
  3. double? ayahFontSize,
  4. Color? tafsirTextColor,
  5. double? tafsirFontSize,
  6. Color? tafsirBackgroundColor,
  7. Color? dividerColor,
  8. double? dividerThickness,
  9. int? tafsirMaxLines,
  10. double? tafsirCollapsedHeight,
  11. String? readMoreText,
  12. String? readLessText,
  13. Color? readMoreButtonColor,
  14. TextStyle? readMoreTextStyle,
  15. EdgeInsetsGeometry? ayahPadding,
  16. EdgeInsetsGeometry? tafsirPadding,
  17. Color? ayahNumberColor,
  18. Color? ayahNumberBackgroundColor,
  19. Color? tafsirSelectorBarColor,
  20. Color? tafsirSelectorTextColor,
  21. Color? fontSizeIconColor,
  22. Widget? fontSizeWidget,
  23. Widget? headerWidget,
  24. AyahTafsirInlineOptionsBarWidget? optionsBarWidget,
  25. IconData? playIconData,
  26. Color? playIconColor,
  27. double? iconSize,
  28. IconData? playAllIconData,
  29. Color? playAllIconColor,
  30. IconData? copyIconData,
  31. Color? copyIconColor,
  32. List<int>? bookmarkColorCodes,
  33. double? iconHorizontalPadding,
  34. IconData? bookmarkIconData,
  35. double? tafsirBackgroundBorderRadius,
})

Implementation

AyahTafsirInlineStyle copyWith({
  Color? backgroundColor,
  Color? ayahTextColor,
  double? ayahFontSize,
  Color? tafsirTextColor,
  double? tafsirFontSize,
  Color? tafsirBackgroundColor,
  Color? dividerColor,
  double? dividerThickness,
  int? tafsirMaxLines,
  double? tafsirCollapsedHeight,
  String? readMoreText,
  String? readLessText,
  Color? readMoreButtonColor,
  TextStyle? readMoreTextStyle,
  EdgeInsetsGeometry? ayahPadding,
  EdgeInsetsGeometry? tafsirPadding,
  Color? ayahNumberColor,
  Color? ayahNumberBackgroundColor,
  Color? tafsirSelectorBarColor,
  Color? tafsirSelectorTextColor,
  Color? fontSizeIconColor,
  Widget? fontSizeWidget,
  Widget? headerWidget,
  AyahTafsirInlineOptionsBarWidget? optionsBarWidget,
  IconData? playIconData,
  Color? playIconColor,
  double? iconSize,
  IconData? playAllIconData,
  Color? playAllIconColor,
  IconData? copyIconData,
  Color? copyIconColor,
  List<int>? bookmarkColorCodes,
  double? iconHorizontalPadding,
  IconData? bookmarkIconData,
  double? tafsirBackgroundBorderRadius,
}) {
  return AyahTafsirInlineStyle(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    ayahTextColor: ayahTextColor ?? this.ayahTextColor,
    ayahFontSize: ayahFontSize ?? this.ayahFontSize,
    tafsirTextColor: tafsirTextColor ?? this.tafsirTextColor,
    tafsirFontSize: tafsirFontSize ?? this.tafsirFontSize,
    tafsirBackgroundColor:
        tafsirBackgroundColor ?? this.tafsirBackgroundColor,
    dividerColor: dividerColor ?? this.dividerColor,
    dividerThickness: dividerThickness ?? this.dividerThickness,
    tafsirMaxLines: tafsirMaxLines ?? this.tafsirMaxLines,
    tafsirCollapsedHeight:
        tafsirCollapsedHeight ?? this.tafsirCollapsedHeight,
    readMoreText: readMoreText ?? this.readMoreText,
    readLessText: readLessText ?? this.readLessText,
    readMoreButtonColor: readMoreButtonColor ?? this.readMoreButtonColor,
    readMoreTextStyle: readMoreTextStyle ?? this.readMoreTextStyle,
    ayahPadding: ayahPadding ?? this.ayahPadding,
    tafsirPadding: tafsirPadding ?? this.tafsirPadding,
    ayahNumberColor: ayahNumberColor ?? this.ayahNumberColor,
    optionsBarBackgroundColor:
        ayahNumberBackgroundColor ?? optionsBarBackgroundColor,
    tafsirSelectorBarColor:
        tafsirSelectorBarColor ?? this.tafsirSelectorBarColor,
    tafsirSelectorTextColor:
        tafsirSelectorTextColor ?? this.tafsirSelectorTextColor,
    fontSizeIconColor: fontSizeIconColor ?? this.fontSizeIconColor,
    fontSizeWidget: fontSizeWidget ?? this.fontSizeWidget,
    headerWidget: headerWidget ?? this.headerWidget,
    optionsBarWidget: optionsBarWidget ?? this.optionsBarWidget,
    playIconData: playIconData ?? this.playIconData,
    playIconColor: playIconColor ?? this.playIconColor,
    iconSize: iconSize ?? this.iconSize,
    playAllIconData: playAllIconData ?? this.playAllIconData,
    playAllIconColor: playAllIconColor ?? this.playAllIconColor,
    copyIconData: copyIconData ?? this.copyIconData,
    copyIconColor: copyIconColor ?? this.copyIconColor,
    bookmarkColorCodes: bookmarkColorCodes ?? this.bookmarkColorCodes,
    iconHorizontalPadding:
        iconHorizontalPadding ?? this.iconHorizontalPadding,
    bookmarkIconData: bookmarkIconData ?? this.bookmarkIconData,
    tafsirBackgroundBorderRadius:
        tafsirBackgroundBorderRadius ?? this.tafsirBackgroundBorderRadius,
  );
}