Period class sealed
Base class for Period types.
Constructors
- Period.absolute({required DateTime start, required DateTime end})
-
Create an absolute period.
constfactory
-
Period.fromJson(Map<
String, dynamic> json) -
Parse from JSON.
factory
- Period.relative({required PeriodUnit unit, required int value, PeriodDirection direction})
-
Create a relative period.
constfactory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
[DateTime? referenceTime]) → DateRange - Resolve to DateRange at the given reference time.
-
toJson(
) → Map< String, dynamic> - Convert to JSON.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited