DaylightCalculator class

Class that wraps all daylight calculations

Constructors

DaylightCalculator(DaylightLocation location)
Creates a new DaylightCalculator.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
location DaylightLocation
The specific coordinate location for the calculation.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 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