DateComponents class

Constructors

DateComponents(int year, int month, int day)

Properties

day int
final
hashCode int
The hash code for this object.
no setterinherited
month int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
year int
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.
override

Static Methods

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