JalaliEra enum

How Jalali years are numbered in text.

PersianDate.year is always Solar Hijri. The era only changes the year that format and toString write and that parse and tryParse read.

Inheritance
Available extensions

Values

solarHijri → const JalaliEra

Solar Hijri (هجری شمسی), the official numbering in Iran: 1405.

const JalaliEra(0)
shahanshahi → const JalaliEra

Shahanshahi (شاهنشاهی, Imperial): Solar Hijri plus 1180, so 1405 is 2585.

const JalaliEra(1180)

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
offset → int
Years added to a Solar Hijri year to number it in this era: 0 or 1180.
final
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

Constants

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