compat/src/main/java/androidx/core/graphics/PathUtils.java
@RequiresApi(26)
    @NonNull
    public static Collection<PathSegment> flatten(@NonNull Path path) {
        return flatten(path, 0.5f);
    }
/**
     * Flattens (or approximate) a {@link Path} with a series of line segments using a 0.5 pixel
     * error.
     *
     * <em>Note:</em> This method requires API 26 or newer.
     *
     * @see #flatten(Path, float)
     */
Flattens (or approximate) a  Path with a series of line segments using a 0.5 pixel
error.

Note: This method requires API 26 or newer.


Flattens ( or approximate ) a Path with a series of line segments using a 0 . 5 pixel error . Note : This method requires API 26 or newer .
@RequiresApi(26)
    @NonNull
    public static Collection<PathSegment> flatten(@NonNull Path path) {
        return flatten(path, 0.5f);
    }
@ RequiresApi ( 26 ) @ NonNull public static Collection < PathSegment > flatten ( @ NonNull Path path ) { return flatten ( path , 0.5f ) ; }
Flattens (or approximate) a {@link Path} with a series of line segments using a 0.5 pixel
 error.
Flattens ( or approximate ) a { @link Path } with a series of line segments using a 0 . 5 pixel error .