TimeExtent class final

Represents a span of time between a start time and end time.

To create a time extent which represents an instant in time set the start time and end time to the same time value. The TimeExtent is returned in the meta-data for time-aware services and layers. It is often used to create a time slider ranging from a start time to an end time.

Implemented types

Constructors

TimeExtent({DateTime? startTime, DateTime? endTime})
Creates a time extent with the given start and end times.
factory
TimeExtent.withTimeInstant(DateTime? timeInstant)
Creates a time extent with a time instant.
factory

Properties

endTime DateTime?
The end time of this time extent.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startTime DateTime?
The start time of this time extent.
no setter

Methods

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.
inherited