BookmarkModel constructor

BookmarkModel({
  1. required int id,
  2. required int colorCode,
  3. required String name,
  4. int ayahId = -1,
  5. int ayahNumber = -1,
  6. int page = -1,
})

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,
});