MONTH enum

An enum representation of month

Inheritance

Constructors

MONTH({required int number})
Constructor
const

Values

january → const MONTH

january

const MONTH(number: 1)
february → const MONTH

february

const MONTH(number: 2)
march → const MONTH

march

const MONTH(number: 3)
april → const MONTH

april

const MONTH(number: 4)
may → const MONTH

may

const MONTH(number: 5)
june → const MONTH

june

const MONTH(number: 6)
july → const MONTH

july

const MONTH(number: 7)
august → const MONTH

august

const MONTH(number: 8)
september → const MONTH

september

const MONTH(number: 9)
october → const MONTH

october

const MONTH(number: 10)
november → const MONTH

november

const MONTH(number: 11)
december → const MONTH

december

const MONTH(number: 12)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
number int
the month number
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
shortTitle([String? locale]) String
Return the abbreviation
title([String? locale]) String
Returns the month title based on locale
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromNumber(int number) MONTH
Convert a number to the enum value

Constants

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