shape method

ShapeDefinition shape(
  1. String type
)

Implementation

ShapeDefinition shape(String type) => shapes.firstWhere(
  (s) => s.type == type,
  orElse: () => throw ArgumentError('No $type in $id'),
);