setBookmark method
void
setBookmark({})
يقوم بتعيين علامة مرجعية باستخدام ayahId
وpage
وbookmarkId
المحددة.
ayahId
هو معرّف الآية التي سيتم حفظها.
page
هو رقم الصفحة التي تحتوي على الآية.
bookmarkId
هو معرّف العلامة المرجعية التي سيتم حفظها.
لا يمكن حفظ علامة مرجعية برقم صفحة خارج النطاق من 1 إلى 604.
Sets a bookmark with the given ayahId
, page
and bookmarkId
.
ayahId
is the id of the ayah to be saved.
page
is the page number of the ayah.
bookmarkId
is the id of the bookmark to be saved.
You can't save a bookmark with a page number that is not between 1 and 604.
Implementation
void setBookmark(
{required String surahName,
required int ayahNumber,
required int ayahId,
required int page,
required int bookmarkId}) =>
BookmarksCtrl.instance.saveBookmark(
surahName: surahName,
ayahNumber: ayahNumber,
ayahId: ayahId,
page: page,
colorCode: bookmarkId);