Relation enum

Relation enum representing family relationships TODO:(TWK-team) know the actual relations and their values

Inheritance
Available extensions

Values

father → const Relation

Father

const Relation('father', ['أب'])
mother → const Relation

Mother

const Relation('mother', ['أم'])
brother → const Relation

Brother

const Relation('brother', ['أخ'])
sister → const Relation

Sister

const Relation('sister', ['أخت'])
son → const Relation

Son

const Relation('son', ['ابن'])
daughter → const Relation

Daughter

const Relation('daughter', ['ابنة', 'بنت'])
husband → const Relation

Husband

const Relation('husband', ['زوج'])
wife → const Relation

Wife

const Relation('wife', ['زوجة'])
guardian → const Relation

Guardian

const Relation('guardian', ['وصي'])
other → const Relation

Other relationship

const Relation('other', ['آخر'])

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
matchingValues → List<String>
Alternative matching values (e.g., Arabic translations)
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
value → String
The string value associated with this relation
final

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

fromString(String relationStr) → Relation
Creates a Relation from a string value Matches against both value and matchingValues (case-insensitive) Returns other if no match is found

Constants

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