require method

Implementation

DiagramPortShapeDefinition require(PortShape shape) =>
    definitions[shape] ??
    (throw StateError('Unregistered port shape: ${shape.name}'));