closePath method

void closePath()

Close the path with a line

Implementation

void closePath() {
  assert(() {
    if (_page.pdfDocument.settings.verbose) {
      _buf.putString(' ' * (_indent));
    }
    return true;
  }());

  _buf.putString('h ');
  _page.altered = true;

  assert(() {
    if (_page.pdfDocument.settings.verbose) {
      _buf.putString(' ' * (_commentIndent - 2 - _indent));
      _buf.putComment('closePath()');
    }
    return true;
  }());
}