Skip to content

Commit c692661

Browse files
whessenaudzghebre
authored andcommitted
Improve documentation of Path.extendWithPath (flutter#27793)
The documentation used the word "segment" instead of "sub-path". The documentation of Path.addPath described adding a Path as adding a single sub-path.
1 parent d8d60ba commit c692661

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/ui/painting.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2495,8 +2495,7 @@ class Path extends NativeFieldWrapperClass1 {
24952495
}
24962496
void _addRRect(Float32List rrect) native 'Path_addRRect';
24972497

2498-
/// Adds a new sub-path that consists of the given `path` offset by the given
2499-
/// `offset`.
2498+
/// Adds the sub-paths of `path`, offset by `offset`, to this path.
25002499
///
25012500
/// If `matrix4` is specified, the path will be transformed by this matrix
25022501
/// after the matrix is translated by the given offset. The matrix is a 4x4
@@ -2514,8 +2513,9 @@ class Path extends NativeFieldWrapperClass1 {
25142513
void _addPath(Path path, double dx, double dy) native 'Path_addPath';
25152514
void _addPathWithMatrix(Path path, double dx, double dy, Float64List matrix) native 'Path_addPathWithMatrix';
25162515

2517-
/// Adds the given path to this path by extending the current segment of this
2518-
/// path with the first segment of the given path.
2516+
/// Adds the sub-paths of `path`, offset by `offset`, to this path.
2517+
/// The current sub-path is extended with the first sub-path
2518+
/// of `path`, connecting them with a lineTo if necessary.
25192519
///
25202520
/// If `matrix4` is specified, the path will be transformed by this matrix
25212521
/// after the matrix is translated by the given `offset`. The matrix is a 4x4

0 commit comments

Comments
 (0)