FhirInstant.fromUnits constructor

FhirInstant.fromUnits({
  1. required int year,
  2. required int month,
  3. required int day,
  4. required int hour,
  5. required int minute,
  6. required int second,
  7. int? millisecond,
  8. int? microsecond,
  9. required int timeZoneOffset,
  10. bool? isUtc,
})

Implementation

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,
}) =>
    FhirDateTimeBase.fromUnits<FhirInstant>(
      year: year,
      month: month,
      day: day,
      hour: hour,
      minute: minute,
      second: second,
      millisecond: millisecond,
      microsecond: microsecond,
      timeZoneOffset: timeZoneOffset,
      isUtc: isUtc ?? false,
    ) as FhirInstant;