Period class

A time period defined by a start and end date/time.

Constructors

Period({DateTime? start, DateTime? end})
Creates a new Period instance.
Period.fromJson(JsonObject _json)
Creates a new Period instance from a JsonObject.

Properties

end DateTime?
The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.
no setter
hashCode int
The hash code for this object.
no setteroverride
json → JsonObject
Converts this Period instance to a JSON object.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start DateTime?
The start of the period. The boundary is inclusive.
no setter

Methods

copyWith({DateTime? start, DateTime? end}) Period
Makes a copy of this Period
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

endField → const FieldDefinition<DateTime>
Field definition for end
fieldDefinitions → const List<FieldDefinition<DateTime>>
All field definitions for Period
startField → const FieldDefinition<DateTime>
Field definition for start