FhirOid constructor

FhirOid(
  1. dynamic inValue
)

Implementation

factory FhirOid(dynamic inValue) => inValue is String &&
        RegExp(r'^urn:oid:[0-2](\.(0|[1-9][0-9]*))+$').hasMatch(inValue)
    ? FhirOid._(inValue, inValue, true)
    : FhirOid._(inValue.toString(), null, false);