createPath method

  1. @override
Path createPath(
  1. double size,
  2. Neighbors? neighbors
)
override

Implementation

@override
Path createPath(double size, Neighbors? neighbors) {
  Path path = Path();
  double cSizeFraction = radiusFraction.coerceIn(0.0, 1.0);
  double padding = size * (1 - cSizeFraction)/2;
  path.addOval(Rect.fromLTRB(padding, padding, size- padding, size-padding));
  return path;
}