SurahPageViewBuild constructor

const SurahPageViewBuild({
  1. Key? key,
  2. required BuildContext userContext,
  3. required QuranPageModel surahPage,
  4. required int surahPageIndex,
  5. required int globalPageIndex,
  6. required int surahNumber,
  7. required bool isDark,
  8. required String? languageCode,
  9. Widget? circularProgressWidget,
  10. List? bookmarkList,
  11. Color? bookmarksColor,
  12. Color? customBookmarksColor(
    1. AyahModel
    )?,
  13. Color? textColor,
  14. Color? ayahSelectedFontColor,
  15. Color? ayahSelectedBackgroundColor,
  16. Color? ayahIconColor,
  17. bool showAyahBookmarkedIcon = true,
  18. List<int> ayahBookmarked = const [],
  19. bool isAyahBookmarked(
    1. AyahModel ayah
    )?,
  20. void onAyahLongPress(
    1. LongPressStartDetails details,
    2. AyahModel ayah
    )?,
  21. void onSurahBannerPress(
    1. SurahNamesModel surah
    )?,
  22. BannerStyle? bannerStyle,
  23. SurahNameStyle? surahNameStyle,
  24. BasmalaStyle? basmalaStyle,
})

Implementation

const SurahPageViewBuild({
  super.key,
  required this.userContext,
  required this.surahPage,
  required this.surahPageIndex,
  required this.globalPageIndex,
  required this.surahNumber,
  required this.isDark,
  required this.languageCode,
  this.circularProgressWidget,
  this.bookmarkList,
  this.bookmarksColor,
  this.customBookmarksColor,
  this.textColor,
  this.ayahSelectedFontColor,
  this.ayahSelectedBackgroundColor,
  this.ayahIconColor,
  this.showAyahBookmarkedIcon = true,
  this.ayahBookmarked = const [],
  this.isAyahBookmarked,
  this.onAyahLongPress,
  this.onSurahBannerPress,
  this.bannerStyle,
  this.surahNameStyle,
  this.basmalaStyle,
});