Ellipsize enum
问题结尾样式
Values
- none → const Ellipsize
-
- 无省略(默认行为,文本会自动换行或溢出显示) 对应 Android 中 ellipsize="none"
const Ellipsize(0) - end → const Ellipsize
-
- 文本末尾显示省略号(...) 对应 Android 中 ellipsize="end"(最常用,单行/多行均支持)
const Ellipsize(1) - start → const Ellipsize
-
- 文本开头显示省略号(...) 对应 Android 中 ellipsize="start"(仅单行有效)
const Ellipsize(2) - middle → const Ellipsize
-
- 文本中间显示省略号(...) 对应 Android 中 ellipsize="middle"(仅单行有效)
const Ellipsize(3) - marquee → const Ellipsize
-
- 文本滚动显示(跑马灯效果) 对应 Android 中 ellipsize="marquee"(需配合 focusable 等属性启用)
const Ellipsize(4)
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
- value → int
-
final
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