require method

ShapeDefinition require(
  1. String type
)

Implementation

ShapeDefinition require(String type) {
  final definition = _definitions[type];
  if (definition == null) throw StateError('No shape definition for $type.');
  return definition;
}