strokePath method

void strokePath({
  1. bool close = false,
})

Draw the contour of the previously defined shape

Implementation

void strokePath({bool close = false}) {
  var o = 0;
  assert(() {
    if (_page.pdfDocument.settings.verbose) {
      o = _buf.offset;
      _buf.putString(' ' * (_indent));
    }
    return true;
  }());

  _buf.putString('${close ? 's' : 'S'} ');
  _page.altered = true;

  assert(() {
    if (_page.pdfDocument.settings.verbose) {
      _buf.putString(' ' * math.max(0, _commentIndent - _buf.offset + o));
      _buf.putComment('strokePath(close: $close)');
    }
    return true;
  }());
}