SuraJsonFilesService class

خدمة صغيرة لإدارة ملفات sura_###.json:

  • تنزيل ZIP (غير الويب)
  • تفعيل في الويب عبر زر التحميل
  • فهرسة الملفات محليًا (recursive)
  • قراءة JSON لسورة محددة (Web أو Local)

Constructors

SuraJsonFilesService({required String storageKey, required String zipName, required String dirName, required List<String> zipUrls, required String webBaseUrl, String? webBaseUrlGitLab, int minZipSizeBytes = 50 * 1024, String? logName})

Properties

dirName → String
final
hashCode → int
The hash code for this object.
no setterinherited
logName → String?
final
minZipSizeBytes → int
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
storageKey → String
final
webBaseUrl → String
final
webBaseUrlGitLab → String?
final
zipName → String
final
zipUrls → List<String>
final

Methods

downloadAndEnable({required ZipDownloadProgressCallback onProgress}) → Future<void>
isEnabled() → bool
loadSurahJsonList(int surahNumber) → Future<List?>
markEnabled() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

debugResetVerificationState() → void
لإعادة ضبط حالة الفحص بين الاختبارات.