FhirInstant class

Inheritance
Annotations
  • @immutable

Constructors

FhirInstant(dynamic inValue, [DateTimePrecision? precision])
factory
FhirInstant.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
FhirInstant.fromJson(String json, {DateTimePrecision? precision})
factory
FhirInstant.fromUnits({required int year, required int month, required int day, required int hour, required int minute, required int second, int? millisecond, int? microsecond, required int timeZoneOffset, bool? isUtc})
factory
FhirInstant.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) FhirInstant
override
subtract<T>(ExtendedDuration other) FhirInstant
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) FhirInstant
override
operator -(ExtendedDuration other) FhirInstant
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