DaylightCalculator class

Class that wraps all daylight calculations

Constructors

DaylightCalculator(DaylightLocation location)
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
location DaylightLocation
The specific coordinate location for the calculation.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

calculateEvent(DateTime date, Zenith zenith, EventType type) DateTime
Calculate the time of an specific sun event [...]
calculateForDay(DateTime date, [Zenith zenith = Zenith.official]) DaylightResult
Calculate both sunset and sunrise times for optional Zenith and returns in a DaylightResult [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited