PrayerTimes class

Constructors

PrayerTimes(Coordinates coordinates, DateComponents dateComponents, CalculationParameters calculationParameters, {Duration utcOffset})
Calculate PrayerTimes and Output Local Times By Default. If you provide utcOffset then it will Output UTC with Offset Applied Times.
factory
PrayerTimes.today(Coordinates coordinates, CalculationParameters calculationParameters, {Duration utcOffset})
Calculate Today's PrayerTimes and Output Local Times By Default. If you provide utcOffset then it will Output UTC with Offset Applied Times.
factory
PrayerTimes.utc(Coordinates coordinates, DateComponents dateComponents, CalculationParameters calculationParameters)
Calculate PrayerTimes and Output UTC Times.
factory
PrayerTimes.utcOffset(Coordinates coordinates, DateComponents dateComponents, CalculationParameters calculationParameters, Duration utcOffset)
Calculate PrayerTimes and Output UTC with Offset Applied Times.
factory

Properties

asr DateTime
read-only
calculationParameters CalculationParameters
final
coordinates Coordinates
final
dateComponents DateComponents
read-only
dhuhr DateTime
read-only
fajr DateTime
read-only
hashCode int
The hash code for this object.
read-onlyinherited
isha DateTime
read-only
maghrib DateTime
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
sunrise DateTime
read-only
utcOffset Duration
final

Methods

currentPrayer() Prayer
currentPrayerByDateTime(DateTime time) Prayer
nextPrayer() Prayer
nextPrayerByDateTime(DateTime time) Prayer
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
timeForPrayer(Prayer prayer) DateTime
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

daysSinceSolstice(int dayOfYear, int year, double latitude) int