UtilityAssociation.withContainmentVisibility constructor

UtilityAssociation.withContainmentVisibility(
  1. UtilityAssociationType associationType, {
  2. required UtilityElement fromElement,
  3. required UtilityElement toElement,
  4. required bool isContainmentVisible,
})

Creates an association with the specified type between the specified utility elements with UtilityAssociation.isContainmentVisible value.

This constructor is typically used when creating UtilityAssociationType.containment association.

Parameters:

  • associationType — The type of association between the UtilityAssociation.fromElement and UtilityAssociation.toElement.
  • fromElement — The first participant in the association.
  • toElement — The second participant in the association.
  • isContainmentVisible — True if the content in the containment association is visible, false otherwise.