resolve method
This outline at frame, for a shape or surface with style and
values.
Implementation
ResolvedOutline resolve(
DiagramRect frame,
ShapeStyle style,
Map<String, Object?> values,
) => switch (_kind) {
_ShapeOutlineKind.rect => RectangleOutline(
frame,
cornerRadius: cornerRadius ? style.cornerRadius : 0,
),
_ShapeOutlineKind.ellipse => EllipseOutline(frame),
_ShapeOutlineKind.path => resolveShapePath(
frame,
_path!(frame.size, values),
cornerRadius: cornerRadius ? style.cornerRadius : 0,
),
_ShapeOutlineKind.ink => _ink(frame, style, values),
};