ExpandedRoundedCornerShape
A shape describing a rectangle with rounded corners, where each corner radius is expanded by an additional amount specified by cornerExpansion.
This shape is useful when you need to create rounded corners that account for additional spacing, such as when applying borders with insets. The cornerExpansion value is added to each corner's radius, ensuring that the rounded corners maintain their visual appearance even when the shape needs to be adjusted for spacing requirements.
Since
0.5.0
Parameters
The size of the top start corner radius.
The size of the top end corner radius.
The size of the bottom end corner radius.
The size of the bottom start corner radius.
The additional length to apply to each corner radius. This value is added to the base corner radius for all four corners.
Constructors
Functions
Checks if this Shape is a RoundedCornerShape.
Converts this Shape to an ExpandedRoundedCornerShape if it is a RoundedCornerShape, otherwise returns the shape unchanged.