copyWith method

AyahMenuStyle copyWith({
  1. Color? backgroundColor,
  2. Color? borderColor,
  3. double? borderWidth,
  4. double? borderRadius,
  5. double? outerBorderRadius,
  6. List<int>? bookmarkColorCodes,
  7. Color? copyIconColor,
  8. Color? tafsirIconColor,
  9. Color? dividerColor,
  10. List<BoxShadow>? boxShadow,
  11. EdgeInsetsGeometry? padding,
  12. EdgeInsetsGeometry? margin,
  13. double? dialogHeight,
  14. double? iconSize,
  15. double? iconHorizontalPadding,
  16. double? itemBaseWidth,
  17. double? itemSpacing,
  18. double? extraHorizontalSpace,
  19. double? dividerHeight,
  20. double? dividerThickness,
  21. bool? showBookmarkButtons,
  22. bool? showCopyButton,
  23. bool? showTafsirButton,
  24. IconData? bookmarkIconData,
  25. IconData? copyIconData,
  26. IconData? tafsirIconData,
  27. double? tapOffsetSpacing,
  28. double? edgeSafeMargin,
  29. String? copySuccessMessage,
  30. List<Widget>? customMenuItems,
  31. bool? showPlayAllButton,
  32. bool? showPlayButton,
  33. IconData? playIconData,
  34. IconData? playAllIconData,
  35. Color? playIconColor,
  36. Color? playAllIconColor,
})

Implementation

AyahMenuStyle copyWith({
  Color? backgroundColor,
  Color? borderColor,
  double? borderWidth,
  double? borderRadius,
  double? outerBorderRadius,
  List<int>? bookmarkColorCodes,
  Color? copyIconColor,
  Color? tafsirIconColor,
  Color? dividerColor,
  List<BoxShadow>? boxShadow,
  EdgeInsetsGeometry? padding,
  EdgeInsetsGeometry? margin,
  double? dialogHeight,
  double? iconSize,
  double? iconHorizontalPadding,
  double? itemBaseWidth,
  double? itemSpacing,
  double? extraHorizontalSpace,
  double? dividerHeight,
  double? dividerThickness,
  bool? showBookmarkButtons,
  bool? showCopyButton,
  bool? showTafsirButton,
  IconData? bookmarkIconData,
  IconData? copyIconData,
  IconData? tafsirIconData,
  double? tapOffsetSpacing,
  double? edgeSafeMargin,
  String? copySuccessMessage,
  List<Widget>? customMenuItems,
  bool? showPlayAllButton,
  bool? showPlayButton,
  IconData? playIconData,
  IconData? playAllIconData,
  Color? playIconColor,
  Color? playAllIconColor,
}) {
  return AyahMenuStyle(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    borderColor: borderColor ?? this.borderColor,
    borderWidth: borderWidth ?? this.borderWidth,
    borderRadius: borderRadius ?? this.borderRadius,
    outerBorderRadius: outerBorderRadius ?? this.outerBorderRadius,
    bookmarkColorCodes: bookmarkColorCodes ?? this.bookmarkColorCodes,
    copyIconColor: copyIconColor ?? this.copyIconColor,
    tafsirIconColor: tafsirIconColor ?? this.tafsirIconColor,
    dividerColor: dividerColor ?? this.dividerColor,
    boxShadow: boxShadow ?? this.boxShadow,
    padding: padding ?? this.padding,
    margin: margin ?? this.margin,
    dialogHeight: dialogHeight ?? this.dialogHeight,
    iconSize: iconSize ?? this.iconSize,
    iconHorizontalPadding:
        iconHorizontalPadding ?? this.iconHorizontalPadding,
    itemBaseWidth: itemBaseWidth ?? this.itemBaseWidth,
    itemSpacing: itemSpacing ?? this.itemSpacing,
    extraHorizontalSpace: extraHorizontalSpace ?? this.extraHorizontalSpace,
    dividerHeight: dividerHeight ?? this.dividerHeight,
    dividerThickness: dividerThickness ?? this.dividerThickness,
    showBookmarkButtons: showBookmarkButtons ?? this.showBookmarkButtons,
    showCopyButton: showCopyButton ?? this.showCopyButton,
    showTafsirButton: showTafsirButton ?? this.showTafsirButton,
    bookmarkIconData: bookmarkIconData ?? this.bookmarkIconData,
    copyIconData: copyIconData ?? this.copyIconData,
    tafsirIconData: tafsirIconData ?? this.tafsirIconData,
    tapOffsetSpacing: tapOffsetSpacing ?? this.tapOffsetSpacing,
    edgeSafeMargin: edgeSafeMargin ?? this.edgeSafeMargin,
    copySuccessMessage: copySuccessMessage ?? this.copySuccessMessage,
    customMenuItems: customMenuItems ?? this.customMenuItems,
    showPlayAllButton: showPlayAllButton ?? this.showPlayAllButton,
    showPlayButton: showPlayButton ?? this.showPlayButton,
    playIconData: playIconData ?? this.playIconData,
    playAllIconData: playAllIconData ?? this.playAllIconData,
    playIconColor: playIconColor ?? this.playIconColor,
    playAllIconColor: playAllIconColor ?? this.playAllIconColor,
  );
}