GetSingleAyah constructor

GetSingleAyah({
  1. Key? key,
  2. required int surahNumber,
  3. required int ayahNumber,
  4. Color? textColor,
  5. bool? isDark = false,
  6. double? fontSize,
  7. bool? isBold = true,
  8. AyahModel? ayahs,
  9. bool? isSingleAyah = true,
  10. bool? islocalFont = false,
  11. String? fontsName,
  12. int? pageIndex,
  13. dynamic onAyahLongPress(
    1. LongPressStartDetails details,
    2. AyahModel ayah
    )?,
  14. Color? ayahIconColor,
  15. bool showAyahBookmarkedIcon = false,
  16. Color? bookmarksColor,
  17. Color? customBookmarksColor(
    1. AyahModel
    )?,
  18. Color? ayahSelectedBackgroundColor,
  19. TextAlign? textAlign,
  20. bool? enabledTajweed,
  21. bool enableWordSelection = false,
  22. dynamic onWordTap(
    1. WordRef wordRef
    )?,
  23. Color? selectedWordColor,
  24. WordRef? externalSelectedWordRef,
  25. ({int fromWord, int toWord})? selectedWordsRange,
  26. bool? showAyahNumber = true,
  27. double? textHeight,
})

Implementation

GetSingleAyah({
  super.key,
  required this.surahNumber,
  required this.ayahNumber,
  this.textColor,
  this.isDark = false,
  this.fontSize,
  this.isBold = true,
  this.ayahs,
  this.isSingleAyah = true,
  this.islocalFont = false,
  this.fontsName,
  this.pageIndex,
  this.onAyahLongPress,
  this.ayahIconColor,
  this.showAyahBookmarkedIcon = false,
  this.bookmarksColor,
  this.customBookmarksColor,
  this.ayahSelectedBackgroundColor,
  this.textAlign,
  this.enabledTajweed,
  this.enableWordSelection = false,
  this.onWordTap,
  this.selectedWordColor,
  this.externalSelectedWordRef,
  this.selectedWordsRange,
  this.showAyahNumber = true,
  this.textHeight,
});