DateComponents class

Constructors

DateComponents(int year, int month, int day)

Properties

day int
final
hashCode int
The hash code for this object.
read-onlyinherited
month int
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
year int
final

Methods

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

Operators

operator ==(dynamic other) bool
The equality operator.
override

Static Methods

from(DateTime date) DateComponents
Convenience method that returns a DateComponents from a given DateTime