Date class

A Basic representation of a Date since 1.4.0

Constructors

Date({required int year, int month = 1, int day = 1})
Create a Date from the provided values. since 1.4.0

Properties

day int
The day of the month, 1-indexed. since 1.4.0
final
hashCode int
The hash code for this object.
no setterinherited
month int
The month of the year, 1-indexed. since 1.4.0
final
props List<Object>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
year int
The calendar year since 1.4.0
final

Methods

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

Operators

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

Static Methods

isValidDate(int year, int month, int day) bool
Returns true if the provided year, month, and day values can be parsed into a valid Date object. since 1.4.0