ShapeStack constructor

ShapeStack(
  1. Iterable<ShapePart> children
)

Implementation

ShapeStack(Iterable<ShapePart> children)
  : children = List.unmodifiable(children) {
  if (this.children.isEmpty) throw ArgumentError('A stack requires children');
}