extendWithPath method

void extendWithPath (
  1. Path path,
  2. Offset offset,
  3. {Float64List matrix4}
)

Adds the given path to this path by extending the current segment of this path with the first segment of the given path.

If matrix4 is specified, the path will be transformed by this matrix after the matrix is translated by the given offset. The matrix is a 4x4 matrix stored in column major order.

Implementation

void extendWithPath(Path path, Offset offset, {Float64List matrix4}) {
  assert(path != null); // path is checked on the engine side
  assert(_offsetIsValid(offset));
  if (matrix4 != null) {
    assert(_matrix4IsValid(matrix4));
    _extendWithPathAndMatrix(path, offset.dx, offset.dy, matrix4);
  } else {
    _extendWithPath(path, offset.dx, offset.dy);
  }
}