Month enum

Month constants that are returned by DateTime.month method.

Inheritance
Implemented types
Available extensions

Values

january → const Month

January month constant.

const Month(DateTime.january)
february → const Month

February month constant.

const Month(DateTime.february)
march → const Month

March month constant.

const Month(DateTime.march)
april → const Month

April month constant.

const Month(DateTime.april)
may → const Month

May month constant.

const Month(DateTime.may)
june → const Month

June month constant.

const Month(DateTime.june)
july → const Month

July month constant.

const Month(DateTime.july)
august → const Month

August month constant.

const Month(DateTime.august)
september → const Month

September month constant.

const Month(DateTime.september)
october → const Month

October month constant.

const Month(DateTime.october)
november → const Month

November month constant.

const Month(DateTime.november)
december → const Month

December month constant.

const Month(DateTime.december)

Properties

dateTimeValue int
The value of the month in DateTime class.
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
next Month
Returns the Month next to this.
no setter
previous Month
Returns the Month previous to this.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compareTo(Month other) int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
of(int year, {bool utc = true}) MonthPeriod
Returns the period of the month on the given year.
toString() String
A string representation of this object.
inherited

Operators

operator +(int months) Month
Returns the Month that corresponds to this added months. Eg.:
operator -(int months) Month
Returns the Month that corresponds to this subtracted months. Eg.:
operator <(Month other) bool
Returns true if this month is before than other.
operator <=(Month other) bool
Returns true if this month is before or equal to other.
operator ==(Object other) bool
The equality operator.
inherited
operator >(Month other) bool
Returns true if this month is after other.
operator >=(Month other) bool
Returns true if this month is after or equal to other.

Constants

generator → const MonthGenerator
Returns a constant MonthGenerator.
values → const List<Month>
A constant List of the values in this enum, in order of their declaration.