Date class

Represents a whole calendar date.

Set day to 0 when only the month and year are significant, for example, all of December 2018. Set day and month to 0 if only the year is significant, for example, the entire of 2018. Set year to 0 when only the day and month are significant, for example, an anniversary or birthday. Unsupported: Setting all values to 0, only month to 0, or both day and year to 0 at the same time.

Constructors

Date({int? day, int? month, int? year})
Date.fromJson(Map json_)

Properties

day int?
Day of month.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
month int?
Month of a year.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
year int?
Year of the date.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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