gregorianMonthName property
String
get
gregorianMonthName
Short English month name for 1-12. 1 → "Jan"
Implementation
String get gregorianMonthName {
const List<String> names = <String>["Jan", "Feb", "March", "April", "May", "June", "July", "August", "Sep", "Oct", "Nov", "Dec"];
return this >= 1 && this <= 12 ? names[this - 1] : "$this";
}