PageBuild constructor

const PageBuild({
  1. Key? key,
  2. required int pageIndex,
  3. required int? surahNumber,
  4. required BannerStyle? bannerStyle,
  5. required bool isDark,
  6. required SurahNameStyle? surahNameStyle,
  7. required SurahInfoStyle? surahInfoStyle,
  8. required dynamic onSurahBannerPress(
    1. SurahNamesModel surah
    )?,
  9. required BasmalaStyle? basmalaStyle,
  10. required Color? textColor,
  11. required Map<int, List<BookmarkModel>> bookmarks,
  12. required dynamic onAyahLongPress(
    1. LongPressStartDetails details,
    2. AyahModel ayah
    )?,
  13. required Widget? secondMenuChild,
  14. required void secondMenuChildOnTap(
    1. AyahModel ayah
    )?,
  15. required List? bookmarkList,
  16. required Color? ayahIconColor,
  17. required bool showAyahBookmarkedIcon,
  18. required List<int> bookmarksAyahs,
  19. required Color? bookmarksColor,
  20. required Color? ayahSelectedBackgroundColor,
  21. required bool? isFontsLocal,
  22. required String? fontsName,
  23. required List<int> ayahBookmarked,
  24. required Widget? anotherMenuChild,
  25. required void anotherMenuChildOnTap(
    1. AyahModel ayah
    )?,
  26. required BuildContext context,
  27. required QuranCtrl quranCtrl,
})

Implementation

const PageBuild({
  super.key,
  required this.pageIndex,
  required this.surahNumber,
  required this.bannerStyle,
  required this.isDark,
  required this.surahNameStyle,
  required this.surahInfoStyle,
  required this.onSurahBannerPress,
  required this.basmalaStyle,
  required this.textColor,
  required this.bookmarks,
  required this.onAyahLongPress,
  required this.secondMenuChild,
  required this.secondMenuChildOnTap,
  required this.bookmarkList,
  required this.ayahIconColor,
  required this.showAyahBookmarkedIcon,
  required this.bookmarksAyahs,
  required this.bookmarksColor,
  required this.ayahSelectedBackgroundColor,
  required this.isFontsLocal,
  required this.fontsName,
  required this.ayahBookmarked,
  required this.anotherMenuChild,
  required this.anotherMenuChildOnTap,
  required this.context,
  required this.quranCtrl,
});