HijriUtils class
Hijri date validation and utilities
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
daysBetween(
HijriDate start, HijriDate end) → int - Calculates the number of days between two Hijri dates
-
getDateRange(
HijriDate start, HijriDate end) → List< HijriDate> - Generates a list of dates between two dates
-
getFridaysInMonth(
int year, int month) → List< HijriDate> - Gets all Fridays in a specific Hijri month
-
getSeason(
int month, [String language = 'en']) → String - Gets the season based on Hijri month
-
gregorianToHijriYear(
int gregorianYear) → int - Converts Gregorian year to approximate Hijri year
-
hijriToGregorianYear(
int hijriYear) → int - Converts Hijri year to approximate Gregorian year
-
isValidDateRange(
HijriDate start, HijriDate end) → bool - Validates if a date range is correct