QpcV4RichTextLine constructor

const QpcV4RichTextLine({
  1. Key? key,
  2. required int pageIndex,
  3. required Color? textColor,
  4. required bool isDark,
  5. required Map<int, List<BookmarkModel>> bookmarks,
  6. required dynamic onAyahLongPress(
    1. LongPressStartDetails details,
    2. AyahModel ayah
    )?,
  7. required List? bookmarkList,
  8. required Color? ayahIconColor,
  9. required bool showAyahBookmarkedIcon,
  10. required List<int> bookmarksAyahs,
  11. required Color? bookmarksColor,
  12. required Color? ayahSelectedBackgroundColor,
  13. required BuildContext context,
  14. required QuranCtrl quranCtrl,
  15. required List<QpcV4WordSegment> segments,
  16. required bool isFontsLocal,
  17. required String fontsName,
  18. String? fontFamilyOverride,
  19. String? fontPackageOverride,
  20. bool usePaintColoring = true,
  21. required List<int> ayahBookmarked,
  22. bool isAyahBookmarked(
    1. AyahModel ayah
    )?,
  23. required bool isCentered,
  24. VoidCallback? onPagePress,
})

Implementation

const QpcV4RichTextLine({
  super.key,
  required this.pageIndex,
  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.context,
  required this.quranCtrl,
  required this.segments,
  required this.isFontsLocal,
  required this.fontsName,
  this.fontFamilyOverride,
  this.fontPackageOverride,
  this.usePaintColoring = true,
  required this.ayahBookmarked,
  this.isAyahBookmarked,
  required this.isCentered,
  this.onPagePress,
});