plus method

  1. @override
FhirInstant plus(
  1. Object other
)
override

Implementation

@override
FhirInstant plus(Object other) {
  final Duration? duration = durationFromObject(other);
  return duration != null
      ? FhirInstant._(
          isValid: true,
          parseError: null,
          value: value.add(duration),
        )
      : this;
}