FlexiDate2 class

Inheritance
Available extensions

Constructors

FlexiDate2({int? day, int? month = 1, int? year})
FlexiDate2.fromDateTime(DateTime time)
FlexiDate2.now()
factory

Properties

day int?
getter/setter pairinherited
error String?

Available on FlexiDate, provided by the FlexiDateExt extension

no setter
hasDay bool

Available on FlexiDate, provided by the FlexiDateExt extension

no setter
hashCode int
The hash code for this object.
no setterinherited
hasMonth bool

Available on FlexiDate, provided by the FlexiDateExt extension

no setter
hasYear bool

Available on FlexiDate, provided by the FlexiDateExt extension

no setter
isAmbiguous bool
getter/setter pairinherited
isFullDate bool

Available on FlexiDate, provided by the FlexiDateExt extension

no setter
isFuture bool

Available on FlexiDate, provided by the FlexiDateExt extension

Whether this date is in the future
no setter
isValid bool
no setterinherited
month int?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source Object?
getter/setter pairinherited
year int?
getter/setter pairinherited

Methods

copy() FlexiDate

Available on FlexiDate, provided by the FlexiDateExt extension

formatted() String?

Available on FlexiDate, provided by the DateComponentsFormat extension

fullFormat({String futureLabel = "in", String historyLabel = "ago", bool withYear = false, String dateLabel = ""}) String

Available on FlexiDate, provided by the DateComponentsFormat extension

isSameMonth(DateTime date) bool

Available on FlexiDate, provided by the DateComponentsComparisons extension

millisecondsSinceEpoch([Location? location]) int

Available on FlexiDate, provided by the FlexiDateExt extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDateTime([Location? location]) DateTime

Available on FlexiDate, provided by the FlexiDateExt extension

toJson() → dynamic
inherited
toMap() Map<String, int?>
inherited
toString() String
A string representation of this object.
inherited
withoutDay() FlexiDate

Available on FlexiDate, provided by the FlexiDateExt extension

withoutYear() FlexiDate

Available on FlexiDate, provided by the FlexiDateExt extension

Operators

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

Static Methods

from(dynamic input) FlexiDate2?
override
fromJson(dynamic json) FlexiDate2?
tryFrom(dynamic input) FlexiDate?
override