BookmarkModel constructor
BookmarkModel({})
Creates a new instance of BookmarkModel.
The id
must be provided.
The colorCode
is the color code of the bookmark.
The name
is the name of the bookmark.
The ayahId
is the identifier of the Ayah in the Quran that is bookmarked.
The ayahNumber
is the number of the Ayah in the Surah.
The page
is the page number in the Quran that the bookmarked Ayah is located.
If ayahId
, ayahNumber
, or page
are not provided, they will be set to -1.
Implementation
BookmarkModel({
required this.id,
required this.colorCode,
required this.name,
this.ayahId = -1,
this.ayahNumber = -1,
this.page = -1,
});