discriminator property
discriminator Designates which child elements are used to discriminate between the slices when processing an instance. If one or more discriminators are provided, the value of the child elements in the instance data SHALL completely distinguish which slice the element in the resource matches based on the allowed values for those elements in each of the slices.
Implementation
List<ElementDefinitionDiscriminator>? get discriminator =>
throw _privateConstructorUsedError;