GlassMenuAlignment enum
Controls which edge/corner of the trigger button the menu expands from.
When GlassMenu.menuAlignment is set to one of these values, the menu anchors its opposite edge to that point on the trigger. For example, topLeft anchors the menu's top-left corner to the trigger, so the body expands downwards and to the right.
Use none (the default) to let the menu auto-detect the best alignment based on the trigger's screen position.
Values
- none → const GlassMenuAlignment
-
Auto-detect alignment based on screen position (default behaviour).
- topLeft → const GlassMenuAlignment
- topCenter → const GlassMenuAlignment
- topRight → const GlassMenuAlignment
- centerLeft → const GlassMenuAlignment
- center → const GlassMenuAlignment
- centerRight → const GlassMenuAlignment
- bottomLeft → const GlassMenuAlignment
- bottomCenter → const GlassMenuAlignment
- bottomRight → const GlassMenuAlignment
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
GlassMenuAlignment> - A constant List of the values in this enum, in order of their declaration.