canCreateRepeatAt method

bool canCreateRepeatAt(
  1. TreeReference repeatRef,
  2. FormIndex repeatIndex
)

Whether a new instance of the repeat at repeatIndex can be added. Port of canCreateRepeat(TreeReference, FormIndex).

Implementation

bool canCreateRepeatAt(TreeReference repeatRef, FormIndex repeatIndex) =>
    canCreateRepeat(
      repeatRef,
      elementAt(repeatIndex) as GroupDef,
      repeatIndex.elementMultiplicity,
    );