toExpandedCornerShape
Converts a RoundedCornerShape to an ExpandedRoundedCornerShape by applying the specified cornerExpansion to all corners.
This extension function provides a convenient way to create an expanded rounded corner shape from an existing RoundedCornerShape. The resulting shape will have the same corner radii as the original shape, but with the cornerExpansion value added to each corner.
Return
An ExpandedRoundedCornerShape with the same corner sizes as this RoundedCornerShape, but with the cornerExpansion applied to each corner.
Since
0.5.0
Parameters
cornerExpansion
The additional length to apply to each corner radius. This value is added to the base corner radius for all four corners.