Date class

Represents a whole calendar date, for example a date of birth.

The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. The date must be a valid calendar date between the year 1 and 9999.

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 date.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
year int?
Year of 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