goesVertical property

bool get goesVertical

Whether this item goes into the vertical strip where there is one.

Resolves GlassBarItemAxisBehavior.automatic by kind: everything but custom content does.

Implementation

bool get goesVertical => switch (axisBehavior) {
      GlassBarItemAxisBehavior.verticalPreferred => true,
      GlassBarItemAxisBehavior.horizontalOnly => false,
      GlassBarItemAxisBehavior.automatic => this is! GlassBarCustomItem,
    };