MyPanelPlacement enum

选择器面板相对触发按钮的弹出方向策略。

  • below / above智能策略:优先按首选方向弹出,仅当首选方向放不下 面板(按内容估算)且反方向更宽裕时,才自动翻转。
  • forceBelow / forceAbove强制策略:始终固定在该方向,不做翻转 (即使该方向空间不足,面板会被压缩/裁剪)。

传给 MySelector.showMySelectorControllerplacement 参数; 默认 below(首选向下,不足才上翻)。

Inheritance
Available extensions

Values

below → const MyPanelPlacement

首选向下,放不下则自动上翻(默认)。

above → const MyPanelPlacement

首选向上,放不下则自动下翻。

forceBelow → const MyPanelPlacement

强制向下,永不翻转。

forceAbove → const MyPanelPlacement

强制向上,永不翻转。

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