FlexiDate class abstract
- Implementers
- Available extensions
Constructors
- FlexiDate()
-
const
- FlexiDate.fromJson(dynamic json)
-
factory
- FlexiDate.now()
-
factory
- FlexiDate.of({int? day, int? month = 1, int? year, bool isAmbiguous = false})
-
factory
- FlexiDate.ofDateTime(DateTime dt)
-
factory
- FlexiDate.parse(String input)
-
factory
- FlexiDate.unparsed(String original, [String? message])
-
factory
Properties
- day ↔ int?
-
getter/setter pair
- 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
-
no setter
- 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 futureno setter - isValid → bool
-
no setter
- month ↔ int?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → Object?
-
no setter
- year ↔ int?
-
getter/setter pair
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 -
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