IqamaType enum

Enumeration of Iqama (residence permit) types in Saudi Arabia.

Represents different categories of residence permits issued to non-citizens.

TODO:(TWK-team) Verify the actual iqama types and their numeric values

Example:

final iqamaType = await twk.getUserIqamaType();
if (iqamaType == IqamaType.resident) {
  print('User is a resident');
}
Inheritance
Available extensions

Values

resident → const IqamaType

Standard resident permit

const IqamaType._(0, 'resident')
visitor → const IqamaType

Visitor/tourist permit

const IqamaType._(1, 'visitor')
diplomatic → const IqamaType

Diplomatic permit

const IqamaType._(2, 'diplomatic')
other → const IqamaType

Other/unknown type

const IqamaType._(-1, 'other')

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → int
Numeric ID for this Iqama type
final
index → int
A numeric identifier for the enumerated value.
no setterinherited
key → String
String key for this Iqama type
final
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

fromId(int id) → IqamaType?
Creates an IqamaType from a numeric ID.

Constants

values → const List<IqamaType>
A constant List of the values in this enum, in order of their declaration.