copyWith method

SurahInfoStyle copyWith({
  1. Color? backgroundColor,
  2. Color? closeIconColor,
  3. Color? surahNameColor,
  4. Color? surahNumberColor,
  5. Color? primaryColor,
  6. Color? titleColor,
  7. Color? indicatorColor,
  8. Color? textColor,
  9. String? ayahCount,
  10. String? secondTabText,
  11. String? firstTabText,
  12. double? bottomSheetWidth,
  13. double? bottomSheetHeight,
})

Implementation

SurahInfoStyle copyWith({
  Color? backgroundColor,
  Color? closeIconColor,
  Color? surahNameColor,
  Color? surahNumberColor,
  Color? primaryColor,
  Color? titleColor,
  Color? indicatorColor,
  Color? textColor,
  String? ayahCount,
  String? secondTabText,
  String? firstTabText,
  double? bottomSheetWidth,
  double? bottomSheetHeight,
}) {
  return SurahInfoStyle(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    closeIconColor: closeIconColor ?? this.closeIconColor,
    surahNameColor: surahNameColor ?? this.surahNameColor,
    surahNumberColor: surahNumberColor ?? this.surahNumberColor,
    primaryColor: primaryColor ?? this.primaryColor,
    titleColor: titleColor ?? this.titleColor,
    indicatorColor: indicatorColor ?? this.indicatorColor,
    textColor: textColor ?? this.textColor,
    ayahCount: ayahCount ?? this.ayahCount,
    secondTabText: secondTabText ?? this.secondTabText,
    firstTabText: firstTabText ?? this.firstTabText,
    bottomSheetWidth: bottomSheetWidth ?? this.bottomSheetWidth,
    bottomSheetHeight: bottomSheetHeight ?? this.bottomSheetHeight,
  );
}