select method

ShapeLibrary select(
  1. Iterable<String> types, {
  2. required String id,
  3. required String name,
})

Reuse selected definitions in another library without copying their implementation.

Implementation

ShapeLibrary select(
  Iterable<String> types, {
  required String id,
  required String name,
}) => ShapeLibrary(id: id, name: name, shapes: types.map(shape));