drawHiloOpenClosePath method

void drawHiloOpenClosePath(
  1. Canvas canvas
)

Draws the _path between open and close values.

Implementation

void drawHiloOpenClosePath(Canvas canvas) {
  canvas.drawLine(
      Offset(_centerHigh, _highY), Offset(_centerLow, _lowY), strokePaint!);
  canvas.drawLine(
      Offset(_segmentProperties.openX, _segmentProperties.openY),
      Offset(_isTransposed ? _segmentProperties.openX : _centerHigh,
          _isTransposed ? _highY : _segmentProperties.openY),
      strokePaint!);
  canvas.drawLine(
      Offset(_segmentProperties.closeX, _segmentProperties.closeY),
      Offset(_isTransposed ? _segmentProperties.closeX : _centerLow,
          _isTransposed ? _highY : _segmentProperties.closeY),
      strokePaint!);
}