minDotDistance property

double minDotDistance
final

The minimum distance between dots.

This property also indirectly determined the number of dots that appear.

Dots will have the same distance from its horizontal and vertical neighbors, but will always be farther than the given minimum dot distance. Thus, the exact number of dots chosen will be enough to fit inside the widget's size while also satisfying the above behavior.

Implementation

final double minDotDistance;