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