IndicatorShape constructor

IndicatorShape({
  1. required double width,
  2. required double height,
  3. BorderRadius? borderRadius,
})

Creates a shape that can be used to customize the appearance of the indicators in a PageIndicator.

Implementation

IndicatorShape({
  required this.width,
  required this.height,
  BorderRadius? borderRadius,
}) : borderRadius = borderRadius ??
          BorderRadius.circular(
            math.min(width, height),
          );