MoreFlex constructor
const
MoreFlex({
- Key? key,
- required Axis direction,
- MoreMainAxisAlignment moreMainAxisAlignment = MoreMainAxisAlignment.start,
- MainAxisSize mainAxisSize = MainAxisSize.max,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
- TextDirection? textDirection,
- VerticalDirection verticalDirection = VerticalDirection.down,
- TextBaseline? textBaseline,
- Clip clipBehavior = Clip.none,
- List<
double> customList = const [], - int separateCount = 0,
- List<
Widget> children = const <Widget>[],
Implementation
const MoreFlex({
super.key,
required this.direction,
this.moreMainAxisAlignment = MoreMainAxisAlignment.start,
this.mainAxisSize = MainAxisSize.max,
this.crossAxisAlignment = CrossAxisAlignment.center,
this.textDirection,
this.verticalDirection = VerticalDirection.down,
this.textBaseline, // NO DEFAULT: we don't know what the text's baseline should be
this.clipBehavior = Clip.none,
this.customList = const [],
this.separateCount = 0,
super.children,
}) : assert(
!identical(crossAxisAlignment, CrossAxisAlignment.baseline) ||
textBaseline != null,
'textBaseline is required if you specify the crossAxisAlignment with CrossAxisAlignment.baseline'),
assert(
!identical(moreMainAxisAlignment, MoreMainAxisAlignment.custom) ||
customList.length == children.length,
"customList's length should same as children if you specify the moreMainAxisAlignment with MoreMainAxisAlignment.custom");