slotExtent property

double get slotExtent

Length of an icon slot along the bar.

Square with crossExtent in a horizontal bar. In the strip a lone item is a circle too, while a capsule of several gives each item GlassVerticalBarMetrics.itemExtent.

Implementation

double get slotExtent => axis == Axis.vertical &&
        background == GlassBarItemBackground.shared &&
        items.length > 1
    ? GlassVerticalBarMetrics.itemExtent
    : crossExtent;