hitTestDots method
Implementation
@override
int hitTestDots(double dx, int count, double current) {
var offset = -spacing / 2;
for (var index = 0; index < count; index++) {
if (dx <= (offset += dotWidth + spacing)) {
return index;
}
}
return -1;
}