PullDownMenuItemsOrder enum

Used to configure how the PullDownButton.itemBuilder orders it's items.

Inheritance
Available extensions

Values

downwards → const PullDownMenuItemsOrder

Items are always ordered from item 0 to item N in PullDownButton.itemBuilder (from top to bottom).

For example, list of items (1, 2, 3) will result in menu rendering them like this:

-----
| 1 |
-----
| 2 |
-----
| 3 |
-----
upwards → const PullDownMenuItemsOrder

Items are always ordered from item N to item 0 in PullDownButton.itemBuilder (from bottom to top).

For example, list of items (1, 2, 3) will result in menu rendering them like this:

-----
| 3 |
-----
| 2 |
-----
| 1 |
-----
automatic → const PullDownMenuItemsOrder

Items are ordered depending on menu's PullDownMenuPosition (and its potential overflow). Based on SwiftUI Menu behavior.

If the menu is being opened with downwards movement items will be ordered from 0 to item N in PullDownButton.itemBuilder (from top to bottom).

For example, list of items (1, 2, 3) will result in menu rendering them like this:

-----
| 1 |
-----
| 2 |
-----
| 3 |
-----

If the menu is being opened with upwards movement items will be ordered from N to item 0 in PullDownButton.itemBuilder (from bottom to top).

For example, list of items (1, 2, 3) will result in menu rendering them like this:

-----
| 3 |
-----
| 2 |
-----
| 1 |
-----

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<PullDownMenuItemsOrder>
A constant List of the values in this enum, in order of their declaration.