spotlightHighlightShape function

ShapeBorder spotlightHighlightShape(
  1. SpotlightStep step
)

Implementation

ShapeBorder spotlightHighlightShape(SpotlightStep step) {
  switch (step.highlightShape.trim().toLowerCase()) {
    case 'circle':
      return const CircleBorder();
    case 'pill':
      return RoundedRectangleBorder(borderRadius: BorderRadius.circular(9999));
    case 'rect':
    default:
      return RoundedRectangleBorder(
        borderRadius: BorderRadius.circular(step.highlightCornerRadius),
      );
  }
}