AntdWrapStyle class

Wrap布局样式配置类(用于流式布局)

Inheritance
Available extensions

Constructors

AntdWrapStyle({double spacing = 0.0, double runSpacing = 0.0, WrapAlignment alignment = WrapAlignment.start, WrapCrossAlignment crossAxisAlignment = WrapCrossAlignment.start, Axis direction = Axis.horizontal, VerticalDirection verticalDirection = VerticalDirection.down, TextDirection? textDirection, Clip clipBehavior = Clip.none, TextBaseline? textBaseline, WrapAlignment runAlignment = WrapAlignment.start})
const

Properties

alignment → WrapAlignment
主轴对齐方式(默认start)
final
clipBehavior → Clip
内容裁剪行为(默认none不裁剪)
final
crossAxisAlignment → WrapCrossAlignment
交叉轴行对齐方式(默认start)
final
direction → Axis
布局方向(默认水平方向)
final
hashCode → int
The hash code for this object.
no setterinherited
inherit → bool
是否继承样式,如果为false则不会向上合并其他的样式
finalinherited
runAlignment → WrapAlignment
子元素在交叉轴上的尺寸分布方式(默认start)
final
runSpacing → double
交叉轴方向行间距(单位:逻辑像素,默认0)
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
spacing → double
主轴方向子元素间距(单位:逻辑像素,默认0)
final
textBaseline → TextBaseline?
子元素在主轴上的对齐基准(仅当crossAxisAlignment为baseline时有效)
final
textDirection → TextDirection?
文本方向(影响对齐)
final
verticalDirection → VerticalDirection
垂直方向布局顺序(默认down从上到下)
final

Methods

copyFrom(covariant AntdWrapStyle? style) → AntdWrapStyle
从另一个AntdWrapStyle实例复制属性值(空值不覆盖)
override
copyWith({double? spacing, double? runSpacing, WrapAlignment? alignment, WrapCrossAlignment? crossAxisAlignment, Axis? direction, VerticalDirection? verticalDirection, TextDirection? textDirection, Clip? clipBehavior, TextBaseline? textBaseline, WrapAlignment? runAlignment}) → AntdWrapStyle
merge(T? other) → T?

Available on T?, provided by the StyleExtensions extension

mergeActive(T? defaultStyle, T? tdStyle, T? tdaStyle) → T?

Available on T?, provided by the StyleExtensions extension

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