DayType enum

Enum that defines which sun events happens in a specific day

Inheritance

Constructors

DayType({required bool isNoChange, required bool hasSunrise, required bool hasSunset})
const

Values

sunriseAndSunset → const DayType

A pretty normal day, with sunrise and sunset

const DayType(isNoChange: false, hasSunrise: true, hasSunset: true)
sunriseOnly → const DayType

A day with only sunrise, no sunset today

const DayType(isNoChange: false, hasSunrise: true, hasSunset: false)
sunsetOnly → const DayType

A day with only sunset, no sunrise today (winter is coming)

const DayType(isNoChange: false, hasSunrise: false, hasSunset: true)
allDay → const DayType

A day with no sun events, the sun is up all day

const DayType(isNoChange: true, hasSunrise: false, hasSunset: false)
allNight → const DayType

A day with no sun events, the sun is down all day (winter is here)

const DayType(isNoChange: true, hasSunrise: false, hasSunset: false)

Properties

hashCode int
The hash code for this object.
no setterinherited
hasSunrise bool
Whether the day has sunrise
final
hasSunset bool
Whether the day has sunset
final
index int
A numeric identifier for the enumerated value.
no setterinherited
isNoChange bool
Whether the day has no sun events
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Constants

values → const List<DayType>
A constant List of the values in this enum, in order of their declaration.