cloneWith method

Wayholder cloneWith({
  1. List<Waypath>? inner,
  2. List<Waypath>? closedOuters,
  3. List<Waypath>? openOuters,
})

Implementation

Wayholder cloneWith({List<Waypath>? inner, List<Waypath>? closedOuters, List<Waypath>? openOuters}) {
  Wayholder result = Wayholder(tagholderCollection: tagholderCollection);
  result._master = _master?.clone();
  result._inner.addAll(inner ?? _inner.map((toElement) => toElement.clone()).toList());
  result.closedOutersAddAll(closedOuters ?? _closedOuters.map((toElement) => toElement.clone()).toList());
  result._openOuters.addAll(openOuters ?? _openOuters.map((toElement) => toElement.clone()).toList());
  result.labelPosition = labelPosition;
  result._boundingBox = inner != null || closedOuters != null || openOuters != null ? null : _boundingBox;
  return result;
}