draw abstract method

void draw(
  1. Canvas canvas,
  2. double space,
  3. double width,
  4. double height,
  5. double radius,
  6. double cornerRadius,
)

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);