createHorizontalPath method

  1. @override
Path createHorizontalPath(
  1. SegmentPosition position,
  2. Size segmentSize
)
override

Creates path for horizontal (-) segments.

Implementation

@override
Path createHorizontalPath(SegmentPosition position, Size segmentSize) {
  return Path()
    ..addRect(
      Rect.fromLTWH(
        position.left,
        position.top,
        segmentSize.height,
        segmentSize.width,
      ),
    );
}