QpcV4FlowingText constructor

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

Implementation

const QpcV4FlowingText({
  super.key,
  required this.pageIndex,
  required this.segments,
  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,
  this.customBookmarksColor,
  required this.ayahSelectedBackgroundColor,
  required this.isFontsLocal,
  required this.fontsName,
  required this.ayahBookmarked,
  this.isAyahBookmarked,
  this.onPagePress,
});