ActionItem class
操作项
Constructors
- ActionItem.new({required Widget icon, String? text, TextStyle textStyle = const TextStyle(fontSize: 16, fontWeight: FontWeight.normal, color: Colors.black), TextOverflow textOverflow = TextOverflow.ellipsis, double spacing = 4.0, VoidCallback? onPressed, EdgeInsets padding = EdgeInsets.zero})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget
-
图标
final
- onPressed → VoidCallback?
-
点击回调
final
- padding → EdgeInsets
-
内边距
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spacing → double
-
元素间距
final
- text → String?
-
文本
final
- textOverflow → TextOverflow
-
文本截断方式
final
- textStyle → TextStyle
-
文本样式
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