DatePeriod class
- Implemented types
Constructors
- DatePeriod(Date inclusiveStartDate, Date inclusiveEndDate)
-
factory
- DatePeriod.byDuration(Date inclusiveStartDate, Duration duration)
-
DatePeriod.fromJson(Map<
String, dynamic> map) -
factory
- DatePeriod.parseYMMMMdString(String yMMMMdString, String locale)
-
factory
- DatePeriod.revive(String jsonString)
-
factory
Properties
Methods
-
compareTo(
DatePeriod other) → int -
Compares this object to another object.
override
-
duplicate(
) → DatePeriod -
encode(
) → String -
isInPeriod(
Date date) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
splitByEndDate(
Date endDate) → List< DatePeriod> - this method split the current period based on the month and day of the given Date. They are considered as end date (inclusive).
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
-
toYMMMMdString(
String locale) → String
Operators
-
operator <(
DatePeriod other) → bool -
operator <=(
DatePeriod other) → bool -
operator ==(
Object other) → bool -
The equality operator.
override
-
operator >(
DatePeriod other) → bool -
operator >=(
DatePeriod other) → bool
Static Properties
- startReference → Date
-
final
Constants
- fieldDuration → const String
- fieldEndDate → const String
- fieldStartDate → const String
- oneDay → const Duration