segmentedItemShape

Returns the RoundedCornerShape for an item at index in a segmented list of count items, with 16.dp outer corners on the first/last item and 4.dp inner corners between adjacent items.

Parameters

index

the zero-based index of the item in the list.

count

the total number of items in the list.