LeadingConfig class
左侧区域配置
Constructors
- LeadingConfig.new({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 = const EdgeInsets.symmetric(horizontal: 16.0), double maxWidth = 120.0})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget?
-
图标
final
- maxWidth → double
-
最大宽度
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