named method

ShapePart named(
  1. String name
)

Reuses this part with namespaced text slots and explicitly named surfaces.

Implementation

ShapePart named(String name) {
  if (name.trim().isEmpty || name.contains('.')) {
    throw ArgumentError('Part name must be non-empty and contain no dots');
  }
  return _namePart(this, name);
}