getTimes static method
calculates sun times for a given date, latitude/longitude, and, optionally, the observer height (in meters) relative to the horizon
Implementation
static SunTimes getTimes(DateTime date,
{required double lat, required double lng, double height = 0.0}) {
return getSunTimes(date, lat: lat, lng: lng, height: height);
}