LocalSolarEclipse class

Local circumstances of a solar eclipse: how it looks from one place.

The geometry is computed whether or not the Sun is above the horizon; SolarEclipseContact.visible tells which phases can be seen.

Constructors

LocalSolarEclipse({required SolarEclipseType type, required SolarEclipseContact firstContact, required SolarEclipseContact? secondContact, required SolarEclipseContact? thirdContact, required SolarEclipseContact maximum, required SolarEclipseContact fourthContact, required double magnitude, required double obscuration, required double diameterRatio})
const

Properties

centralDuration → double?
Duration of the total or annular phase in seconds; null for a partial eclipse.
no setter
diameterRatio → double
Ratio of the apparent diameters of the Moon and the Sun at maximum.
final
firstContact → SolarEclipseContact
Start of the partial phase (first contact).
final
fourthContact → SolarEclipseContact
End of the partial phase (fourth contact).
final
hashCode → int
The hash code for this object.
no setterinherited
magnitude → double
Fraction of the Sun's diameter covered at maximum eclipse (at least 1 for a total eclipse).
final
maximum → SolarEclipseContact
Maximum eclipse: the Moon's centre closest to the Sun's centre.
final
obscuration → double
Fraction of the Sun's disk area covered at maximum eclipse.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
secondContact → SolarEclipseContact?
Start and end of the total or annular phase (second and third contact); null for a partial eclipse.
final
thirdContact → SolarEclipseContact?
Start and end of the total or annular phase (second and third contact); null for a partial eclipse.
final
type → SolarEclipseType
Partial, annular or total – at this place (never hybrid).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited