DencendToastGravity enum
Toast 显示位置枚举 用于定义 Toast 在屏幕上的位置
Values
- top → const DencendToastGravity
-
顶部居中显示
- bottom → const DencendToastGravity
-
底部居中显示(默认位置)
- center → const DencendToastGravity
-
屏幕中央显示
- topLeft → const DencendToastGravity
-
左上角显示
- topRight → const DencendToastGravity
-
右上角显示
- bottomLeft → const DencendToastGravity
-
左下角显示
- bottomRight → const DencendToastGravity
-
右下角显示
- centerLeft → const DencendToastGravity
-
左侧中央显示
- centerRight → const DencendToastGravity
-
右侧中央显示
- snackbar → const DencendToastGravity
-
类似 Snackbar 位置,键盘上方显示
- none → const DencendToastGravity
-
无特定位置定位
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<
DencendToastGravity> - A constant List of the values in this enum, in order of their declaration.