copyWith method
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,
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,
);
}