buildDot method
Implementation
Widget buildDot(int index) {
return Container(
height: widget.indicatorSize,
width: widget.indicatorSize,
margin: const EdgeInsets.only(right: 5),
decoration: BoxDecoration(
shape: BoxShape.circle,
color: _currentPage == index
? widget.indicatorActiveColor
: widget.indicatorInactiveColor,
),
);
}