IslamicEventsHelper class

Islamic Events Helper - integrates with the new religious events system

Constructors

IslamicEventsHelper()

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

calculateDaysUntilEvent(HijriDate currentDate, IslamicEvent event) int
Calculates days until a specific event (simplified version)
getAllEvents() List<IslamicEvent>
Gets all events
getDayInformation(HijriDate date) Map<String, dynamic>
Gets comprehensive day information including events
getEventsByType(IslamicEventType type) List<IslamicEvent>
Gets events by type (Eid, fasting, sacred days, etc.)
getEventsForDate(HijriDate date) List<IslamicEvent>
Gets Islamic events for a specific date using the new system
getEventsInMonth(int month) List<IslamicEvent>
Gets all events in a specific month using the new system
getEventsStatistics() Map<String, int>
Gets events statistics
getMainEvents() List<IslamicEvent>
Gets main events (non-reminder events)
getNextEvent([HijriDate? fromDate]) IslamicEvent?
Gets the next Islamic event from current date
getReminders() List<IslamicEvent>
Gets reminder events
getUpcomingEvents({int monthsAhead = 3}) List<IslamicEvent>
Gets upcoming events in the next few months
getUpcomingEventsWithDetails({int monthsAhead = 6}) List<Map<String, dynamic>>
Gets upcoming events with accurate calculations and details
hasEvents(HijriDate date) bool
Checks if a date has any Islamic events
isIslamicHoliday(HijriDate date) bool
Checks if a date is an Islamic holiday (Eid)