TafsirCtrl class
- Inheritance
-
- Object
- GetLifeCycle
- DisposableInterface
- GetxController
- TafsirCtrl
- Implemented types
- Available extensions
Constructors
Properties
- ayahNumber ↔ RxInt
-
getter/setter pair
- ayahTextNormal ↔ RxString
-
getter/setter pair
- ayahUQNumber ↔ RxInt
-
getter/setter pair
- box → GetStorage
-
final
- cancelToken ↔ CancelToken
-
getter/setter pair
- currentDbFileName ↔ String?
-
شرح: متغير لحفظ اسم قاعدة البيانات الحالية
Explanation: Variable to store the current database name
getter/setter pair
-
database
↔ Rx<
TafsirDatabase?> -
getter/setter pair
- downloadIndex ↔ RxInt
-
getter/setter pair
- fontSizeArabic ↔ RxDouble
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
no setterinherited
- initialized → bool
-
Checks whether the controller has already been initialized.
no setterinherited
- isClosed → bool
-
Checks whether the controller has already been closed.
no setterinherited
- isDownloading ↔ RxBool
-
getter/setter pair
- isLoading ↔ RxBool
-
getter/setter pair
- isTafsir ↔ RxBool
-
getter/setter pair
- listeners → int
-
no setterinherited
-
onDelete
→ InternalFinalCallback<
void> -
Internal callback that starts the cycle of this controller.
finalinherited
- onDownloading ↔ RxBool
-
getter/setter pair
-
onStart
→ InternalFinalCallback<
void> -
Called at the exact moment the widget is allocated in memory.
It uses an internal "callable" type, to avoid any @overrides in subclases.
This method should be internal and is required to define the
lifetime cycle of the subclass.
finalinherited
- progress ↔ RxDouble
-
getter/setter pair
- progressString ↔ RxString
-
getter/setter pair
- radioValue ↔ RxInt
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selectedDBName ↔ String?
-
getter/setter pair
- surahNumber ↔ RxInt
-
getter/setter pair
- tafseerAyah ↔ String
-
getter/setter pair
-
tafseerList
↔ RxList<
TafsirTableData> -
getter/setter pair
-
tafsirDownloadIndexList
↔ RxList<
int> -
getter/setter pair
-
tafsirDownloadStatus
→ Rx<
Map< int, bool> > -
final
- translationLangCode ↔ RxString
-
getter/setter pair
-
translationList
↔ RxList<
TranslationModel> -
getter/setter pair
Methods
-
$configureLifeCycle(
) → void -
inherited
-
addListener(
GetStateUpdate listener) → Disposer -
Register a closure to be called when the object notifies its listeners.
inherited
-
addListenerId(
Object? key, GetStateUpdate listener) → Disposer -
inherited
-
checkAllTafsirDownloaded(
) → Future< Map< int, bool> > - شرح: فحص جميع ملفات التفسير Explanation: Check all tafsir files
-
closeAndInitializeDatabase(
{int? pageNumber}) → Future< void> -
Available on TafsirCtrl, provided by the TafsirUi extension
شرح: إغلاق القاعدة وتهيئتها من جديد عند تغيير التفسير Explanation: Close and reinitialize DB when tafsir changes -
closeCurrentDatabase(
) → Future< void> -
copyOnTap(
int ayahUQNumber) → Future< void> -
Available on TafsirCtrl, provided by the TafsirUi extension
--------onTap
-------- شرح: نسخ نص التفسير مع الآية Explanation: Copy tafsir text with ayah -
dispose(
) → void -
inherited
-
disposeId(
Object id) → void -
To dispose an
id
from future updates(), this ids are registered byGetBuilder()
or similar, so is a way to unlink the state change with the Widget from the Controller.inherited -
downloadFile(
String path, String url) → Future< bool> -
Available on TafsirCtrl, provided by the DownloadExtension extension
-
fetchData(
int pageNum) → Future< void> -
------------
FetchingMethod
------------ شرح: جلب بيانات التفسير للصفحة المطلوبة Explanation: Fetch tafsir data for the requested page -
fetchTafsirAyah(
int ayahUQNumber, {String? databaseName}) → Future< List< TafsirTableData> > - شرح: جلب التفسير حسب رقم الآية Explanation: Fetch tafsir by ayah number
-
fetchTafsirPage(
int pageNum, {String? databaseName}) → Future< List< TafsirTableData> > - شرح: جلب التفسير حسب رقم الصفحة Explanation: Fetch tafsir by page number
-
fetchTranslate(
) → Future< void> - شرح: جلب الترجمة Explanation: Fetch translation
-
handleRadioValueChanged(
int val, {int? pageNumber}) → Future< void> -
Available on TafsirCtrl, provided by the TafsirUi extension
شرح: تغيير التفسير أو الترجمة عند تغيير الاختيار Explanation: Change tafsir/translation when selection changes -
initializeDatabase(
) → Future< void> - شرح: تهيئة قاعدة البيانات فقط إذا تغير الاسم Explanation: Only initialize DB if name changed
-
initializeTafsirDownloadStatus(
) → void - شرح: تهيئة حالة تحميل التفسير Explanation: Initialize tafsir download status
-
initTafsir(
) → Future< void> - شرح: تهيئة التفسير مع التأكد من عدم تكرار إنشاء قاعدة البيانات Explanation: Initialize tafsir and avoid redundant DB creation
-
loadTafseer(
) → Future< void> -
loadTafsirDownloadIndices(
) → Future< void> - شرح: تحميل أرقام التفسير المحملة Explanation: Load downloaded tafsir indices
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyChildrens(
) → void -
inherited
-
onClose(
) → void -
Called before
onDelete
method.onClose
might be used to dispose resources used by the controller. Like closing events, or streams before the controller is destroyed. Or dispose objects that can potentially create some memory leaks, like TextEditingControllers, AnimationControllers. Might be useful as well to persist some data on disk.inherited -
onDownloadSuccess(
int tafsirNumber) → void - شرح: عند نجاح التحميل Explanation: On download success
-
onInit(
) → Future< void> -
Called immediately after the widget is allocated in memory.
You might use this to initialize something for the controller.
override
-
onReady(
) → void -
Called 1 frame after onInit(). It is the perfect place to enter
navigation events, like snackbar, dialogs, or a new route, or
async request.
inherited
-
refresh(
) → void -
inherited
-
refreshGroup(
Object id) → void -
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that the
object notifies.
inherited
-
removeListenerId(
Object id, VoidCallback listener) → void -
inherited
-
saveTafsirDownloadIndex(
int tafsirNumber) → Future< void> - شرح: حفظ أرقام التفسير المحملة Explanation: Save downloaded tafsir indices
-
tafsirDownload(
int i) → Future< void> -
------------
DownloadMethods
------------ شرح: تحميل قاعدة بيانات التفسير أو الترجمة Explanation: Download tafsir or translation database -
toString(
) → String -
A string representation of this object.
inherited
-
update(
[List< Object> ? ids, bool condition = true]) → void -
Rebuilds
GetBuilder
each time you callupdate()
; Can take a List ofids
, that will only update the matchingGetBuilder( id: )
,ids
can be reused amongGetBuilders
like group tags. The update will only notify the Widgets, ifcondition
is true.inherited -
updateDownloadStatus(
int tafsirNumber, bool downloaded) → void - شرح: تحديث حالة التحميل Explanation: Update download status
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → TafsirCtrl
-
no setter