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
-
no setter
- calculationParameters → CalculationParameters
-
final
- coordinates → Coordinates
-
final
- dateComponents → DateComponents
-
no setter
- dhuhr → DateTime
-
no setter
- fajr → DateTime
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isha → DateTime
-
no setter
- maghrib → DateTime
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sunrise → DateTime
-
no setter
- utcOffset → Duration?
-
final
Methods
-
currentPrayer(
) → Prayer -
currentPrayerByDateTime(
DateTime time) → Prayer -
nextPrayer(
) → Prayer -
nextPrayerByDateTime(
DateTime time) → Prayer -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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