isVertical property

bool get isVertical

True if current enum value is vertical (i.e. top or bottom)

Implementation

bool get isVertical =>
    this == SMenuPosition.top || this == SMenuPosition.bottom;