Hijri class

Constructors

Hijri({required int year, required int month, required int day})
Hijri.fromDate(DateTime date)
Hijri.now()
Creates a Hijri instance from today's Gregorian date.
factory

Properties

day int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
month int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
year int
getter/setter pair

Methods

isWeekend() bool
monthLength() int
Returns number of days in the month for this instance.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toGreg() DateTime
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromGregorian(DateTime date) Hijri
toGregorian(Hijri date) DateTime