FhirDateTimeBase class abstract

Implemented types
Implementers

Constructors

FhirDateTimeBase({required bool isValid, required DateTimePrecision precision, required dynamic input, required Exception? parseError, required int year, required int month, required int day, required int hour, required int minute, required int second, required int millisecond, required int microsecond, required int timeZoneOffset, required bool isUtc})
const

Properties

day int
final
hashCode int
The hash code for this object.
no setteroverride
hour int
final
input → dynamic
final
isUtc bool
final
isValid bool
final
microsecond int
final
millisecond int
final
minute int
final
month int
final
parseError Exception?
final
precision DateTimePrecision
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
second int
final
timeZoneOffset int
final
value DateTime
no setter
valueDateTime DateTime
no setter
valueString String
no setter
year int
final

Methods

comparisonError(Comparator comparator, Object o) InvalidTypes<FhirDateTimeBase>
fromJson<T>(String json, [DateTimePrecision? precision]) FhirDateTimeBase
isAfter(FhirDateTimeBase other) bool?
isAtSameMomentAs(FhirDateTimeBase other) bool?
isBefore(FhirDateTimeBase other) bool?
isEqual(Object other) bool?
isSameOrAfter(FhirDateTimeBase other) bool?
isSameOrBefore(FhirDateTimeBase other) bool?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toIso8601String() String
toJson() String
toMap() Map<String, int>
toString() String
A string representation of this object.
override
toYaml() String

Operators

operator +(ExtendedDuration other) FhirDateTimeBase
operator -(ExtendedDuration other) FhirDateTimeBase
operator <(Object other) bool?
operator <=(Object other) bool?
operator ==(Object other) bool
The equality operator.
override
operator >(Object other) bool?
operator >=(Object other) bool?

Static Methods

constructor<T>(dynamic inValue, [DateTimePrecision? precision]) FhirDateTimeBase
Trying to consolidate dynamic constructors into a single factory, that has now turned into a static method, but functions the same way. The input can be a String, a dart DateTime, a FhirDateTimeBase, or an other.
fromMathUnits<T>(DateTime dateTime, FhirDateTimeBase fhirDateTimeBase) FhirDateTimeBase
fromUnits<T>({required int year, int? month, int? day, int? hour, int? minute, int? second, int? millisecond, int? microsecond, int? timeZoneOffset, required bool isUtc, DateTimePrecision? precision}) FhirDateTimeBase
plus<T>(FhirDateTimeBase fhirDateTimeBase, ExtendedDuration o) FhirDateTimeBase
subtract<T>(FhirDateTimeBase fhirDateTimeBase, ExtendedDuration o) FhirDateTimeBase