copyWith method

QuranTafsirSideStyle copyWith({
  1. double? quranWidthFraction,
  2. Color? tafsirPanelBackgroundColor,
  3. Color? verticalDividerColor,
  4. double? verticalDividerWidth,
  5. Color? tafsirTextColor,
  6. double? tafsirFontSize,
  7. Color? tafsirHeaderColor,
  8. Color? tafsirHeaderTextColor,
  9. Color? ayahDividerColor,
  10. Color? ayahTextColor,
  11. double? ayahFontSize,
  12. int? tafsirMaxLines,
  13. double? tafsirCollapsedHeight,
  14. String? readMoreText,
  15. String? readLessText,
  16. Color? readMoreButtonColor,
  17. TextStyle? readMoreTextStyle,
  18. Color? fontSizeIconColor,
  19. Color? fontSizeActiveTrackColor,
  20. Color? fontSizeInactiveTrackColor,
  21. Color? fontSizeThumbColor,
})

Implementation

QuranTafsirSideStyle copyWith({
  double? quranWidthFraction,
  Color? tafsirPanelBackgroundColor,
  Color? verticalDividerColor,
  double? verticalDividerWidth,
  Color? tafsirTextColor,
  double? tafsirFontSize,
  Color? tafsirHeaderColor,
  Color? tafsirHeaderTextColor,
  Color? ayahDividerColor,
  Color? ayahTextColor,
  double? ayahFontSize,
  int? tafsirMaxLines,
  double? tafsirCollapsedHeight,
  String? readMoreText,
  String? readLessText,
  Color? readMoreButtonColor,
  TextStyle? readMoreTextStyle,
  Color? fontSizeIconColor,
  Color? fontSizeActiveTrackColor,
  Color? fontSizeInactiveTrackColor,
  Color? fontSizeThumbColor,
}) {
  return QuranTafsirSideStyle(
    quranWidthFraction: quranWidthFraction ?? this.quranWidthFraction,
    tafsirPanelBackgroundColor:
        tafsirPanelBackgroundColor ?? this.tafsirPanelBackgroundColor,
    verticalDividerColor: verticalDividerColor ?? this.verticalDividerColor,
    verticalDividerWidth: verticalDividerWidth ?? this.verticalDividerWidth,
    tafsirTextColor: tafsirTextColor ?? this.tafsirTextColor,
    tafsirFontSize: tafsirFontSize ?? this.tafsirFontSize,
    tafsirHeaderColor: tafsirHeaderColor ?? this.tafsirHeaderColor,
    tafsirHeaderTextColor:
        tafsirHeaderTextColor ?? this.tafsirHeaderTextColor,
    ayahDividerColor: ayahDividerColor ?? this.ayahDividerColor,
    ayahTextColor: ayahTextColor ?? this.ayahTextColor,
    ayahFontSize: ayahFontSize ?? this.ayahFontSize,
    tafsirMaxLines: tafsirMaxLines ?? this.tafsirMaxLines,
    tafsirCollapsedHeight:
        tafsirCollapsedHeight ?? this.tafsirCollapsedHeight,
    readMoreText: readMoreText ?? this.readMoreText,
    readLessText: readLessText ?? this.readLessText,
    readMoreButtonColor: readMoreButtonColor ?? this.readMoreButtonColor,
    readMoreTextStyle: readMoreTextStyle ?? this.readMoreTextStyle,
    fontSizeIconColor: fontSizeIconColor ?? this.fontSizeIconColor,
    fontSizeActiveTrackColor:
        fontSizeActiveTrackColor ?? this.fontSizeActiveTrackColor,
    fontSizeInactiveTrackColor:
        fontSizeInactiveTrackColor ?? this.fontSizeInactiveTrackColor,
    fontSizeThumbColor: fontSizeThumbColor ?? this.fontSizeThumbColor,
  );
}