build method

  1. @override
Path build({
  1. Rect? rect,
  2. double? scale,
})
override

Builds the geometric path for this shape.

rect - The bounding rectangle that defines the area within which the shape should be drawn. scale - Optional scaling factor to resize the shape proportionally.

Returns a Path object that represents the shape's outline.

Implementation

@override
Path build({Rect? rect, double? scale}) {
  return generatePath(useBezier: false, rect: rect!);
}