Date class
- Inheritance
-
- Object
- TimeWrapper
- Date
- 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
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