TimeInterval class

Represents a time interval as defined by IEEE 1752 mHealth standard.

Extends Ieee1752Schema to provide a standardized representation of time intervals using different combinations of start time, end time, and duration.

Inheritance

Constructors

TimeInterval({DateTime? startTime, DateTime? endTime, DurationUnitValue? duration})
Creates a time interval with one of three supported combinations:
factory
TimeInterval.endAndDuration(DateTime end, DurationUnitValue dur)
Creates a time interval with an end time and duration.
TimeInterval.startAndDuration(DateTime start, DurationUnitValue dur)
Creates a time interval with a start time and duration.
TimeInterval.startAndEnd(DateTime start, DateTime end)
Creates a time interval with explicit start and end times.

Properties

duration DurationUnitValue?
The duration of the interval. May be null when using start and end times.
final
endDateTime DateTime?
The end date and time of the interval. May be null when using start time and duration.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startDateTime DateTime?
The start date and time of the interval. May be null when using end time and duration.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this time interval to its JSON representation.
override
toString() String
A string representation of this object.
inherited

Operators

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