FhirCode constructor

FhirCode(
  1. dynamic inValue
)

Implementation

factory FhirCode(dynamic inValue) =>
    inValue is String && RegExp(r'^[^\s]+(\s[^\s]+)*$').hasMatch(inValue)
        ? FhirCode._(inValue, inValue, true)
        : FhirCode._(inValue.toString(), null, false);