TimeFrame class

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

Extends Ieee1752Schema to provide a standardized representation of time references that can be either a specific point in time (date-time) or a time interval with start and end times.

Inheritance

Constructors

TimeFrame({DateTime? dateTime, TimeInterval? timeInterval})
Creates a time frame with either a date-time or a time interval.
factory
TimeFrame.dateTime(DateTime time)
Creates a time frame representing a specific point in time.
TimeFrame.timeInterval(TimeInterval interval)
Creates a time frame representing a time interval.

Properties

dateTime DateTime?
A specific point in time. Will be null if timeInterval is used.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeInterval TimeInterval?
A time interval with start and end times. Will be null if dateTime is used.
final

Methods

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

Operators

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