fromStorageIndex static method

QuranDisplayMode fromStorageIndex(
  1. int idx
)

إنشاء وضع من رقم الفهرس المخزّن

Implementation

static QuranDisplayMode fromStorageIndex(int idx) {
  if (idx >= 0 && idx < QuranDisplayMode.values.length) {
    return QuranDisplayMode.values[idx];
  }
  return QuranDisplayMode.defaultMode;
}