buildWith

fun <P : Any> buildWith(builder: PathBuilder<P>): P

Bridge the gap between this platform-agnostic type and its platform-specific type.

Unlike get, the built platform-specific type is not cached. This can be useful when an implementation requires some manual cleanup that the general Path would be unable to do.