CalculationParameters class
Parameters used for PrayerTime calculation customization
Note that, for many cases, you can use CalculationMethod.getParameters
to get a
pre-computed set of calculation parameters depending on one of the available
CalculationMethod.
Constructors
- CalculationParameters({CalculationMethod method = CalculationMethod.other, required double fajrAngle, double? maghribAngle, double? ishaAngle, int ishaInterval = 0, Madhab madhab = Madhab.shafi, HighLatitudeRule highLatitudeRule = HighLatitudeRule.middle_of_the_night, PrayerAdjustments? adjustments, PrayerAdjustments? methodAdjustments})
Properties
- adjustments ↔ PrayerAdjustments
-
Used to optionally add or subtract a set amount of time from each prayer time
getter/setter pair
- fajrAngle ↔ double
-
The angle of the sun used to calculate fajr
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- highLatitudeRule ↔ HighLatitudeRule
-
Rules for placing bounds on Fajr and Isha for high latitude areas
getter/setter pair
- ishaAngle ↔ double?
-
The angle of the sun used to calculate isha
getter/setter pair
- ishaInterval ↔ int
-
Minutes after Maghrib (if set, the time for Isha will be Maghrib plus IshaInterval)
getter/setter pair
- madhab ↔ Madhab
-
The madhab used to calculate Asr
getter/setter pair
- maghribAngle ↔ double?
-
The angle of the sun used to calculate Maghrib
getter/setter pair
- method ↔ CalculationMethod
-
The method used to do the calculation
getter/setter pair
- methodAdjustments ↔ PrayerAdjustments
-
Used for method adjustments
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
nightPortions(
) → _NightPortions -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withMethodAdjustments(
PrayerAdjustments adjustments) → CalculationParameters -
Set the method adjustments for the current calculation parameters
adjustments
the prayer adjustments return this calculation parameters instance
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited