draw abstract method
void
draw()
This method will get body to class extending BasePainter and this method will draw the sliding indicator which slide over changing index.
Implementation
void draw(Canvas canvas, double space, double width, double height,
double radius, double cornerRadius);