QpcV4FlowingText constructor

const QpcV4FlowingText({
  1. Key? key,
  2. required int pageIndex,
  3. required List<QpcV4WordSegment> segments,
  4. required int ayahUq,
  5. required int ayahNumber,
  6. required int surahNumber,
  7. required Color? textColor,
  8. required bool isDark,
  9. required Map<int, List<BookmarkModel>> bookmarks,
  10. required dynamic onAyahLongPress(
    1. LongPressStartDetails details,
    2. AyahModel ayah
    )?,
  11. required List? bookmarkList,
  12. required Color? ayahIconColor,
  13. required bool showAyahBookmarkedIcon,
  14. required List<int> bookmarksAyahs,
  15. required Color? bookmarksColor,
  16. required Color? ayahSelectedBackgroundColor,
  17. required bool isFontsLocal,
  18. required String fontsName,
  19. required List<int> ayahBookmarked,
  20. bool isAyahBookmarked(
    1. AyahModel ayah
    )?,
  21. VoidCallback? onPagePress,
})

Implementation

const QpcV4FlowingText({
  super.key,
  required this.pageIndex,
  required this.segments,
  required this.ayahUq,
  required this.ayahNumber,
  required this.surahNumber,
  required this.textColor,
  required this.isDark,
  required this.bookmarks,
  required this.onAyahLongPress,
  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,
  this.isAyahBookmarked,
  this.onPagePress,
});