DateModel class

日期的实体类

Constructors

DateModel()

Properties

day int
read / write
extraData Object
read / write
gregorianFestival String
read-only
hashCode int
The hash code for this object. [...]
read-only, override
isCanClick bool
read / write
isCurrentDay bool
read-only
isCurrentMonth bool
read / write
isInRange bool
read / write
isLeapYear bool
read-only
isSelected bool
read / write
isWeekend bool
read-only
lunar List<int>
read / write
lunarDay int
read-only
lunarMonth int
read-only
lunarString String
/ return LunarUtil.solarToLunar(year, month, day);
read-only
lunarYear int
read-only
month int
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
solarTerm String
read-only
traditionFestival String
read-only
year int
read / write

Methods

getDateTime() DateTime
isAfter(DateModel dateModel) bool
isBefore(DateModel dateModel) bool
isSameWith(DateModel dateModel) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
override

Static Methods

fromDateTime(DateTime dateTime) DateModel