FhirDateTime class

Inheritance
Annotations
  • @immutable

Constructors

FhirDateTime(dynamic inValue, [DateTimePrecision? precision])
factory
FhirDateTime.fromBase({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
FhirDateTime.fromJson(String json, {DateTimePrecision? precision})
factory
FhirDateTime.fromUnits({required int year, int? month, int? day, int? hour, int? minute, int? second, int? millisecond, int? microsecond, int? timeZoneOffset, bool? isUtc})
factory
FhirDateTime.fromYaml(String yaml, [DateTimePrecision? precision])
factory

Properties

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

Methods

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

Operators

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