Date class

Inheritance
Available extensions

Constructors

Date({required int year, required int month, required int day})
Date.fromDateTime(DateTime dateTime)
factory
Date.fromString(String date, {String pattern = 'yyyy-MM-ddTHH:mm:ssZ'})
factory
Date.today()
factory

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

compareTo(TimeWrapper compare) int
inherited
decrease(Duration value) TimeWrapper
override
difference(TimeWrapper compare) Duration
inherited
format({DateFormat? formatter}) String
override
increase(Duration value) TimeWrapper
override
isAfter(TimeWrapper wrapper, {bool alsoEqual = true}) bool
inherited
isBefore(TimeWrapper wrapper, {bool alsoEqual = true}) bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDateTime({TimeStamp? filler}) DateTime
override
toString() String
A string representation of this object.
inherited

Operators

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