Surahs constructor

Surahs({
  1. required int number,
  2. required String name,
  3. required String englishName,
  4. required String englishNameTranslation,
  5. required String revelationType,
  6. required List<Ayahs> ayahs,
})

Constructs a new Surahs object.

  • number: The Surah number.
  • name: The name of the Surah.
  • englishName: The English name of the Surah.
  • englishNameTranslation: The translation of the English name of the Surah.
  • revelationType: The type of revelation.
  • ayahs: The list of Ayahs in the Surah.

Implementation

Surahs({
  required this.number,
  required this.name,
  required this.englishName,
  required this.englishNameTranslation,
  required this.revelationType,
  required this.ayahs,
});