HtmlFlex constructor
HtmlFlex({
- Key? key,
- required Axis direction,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
- MainAxisSize mainAxisSize = MainAxisSize.max,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
- TextDirection? textDirection,
- VerticalDirection verticalDirection = VerticalDirection.down,
- TextBaseline? textBaseline,
- Clip clipBehavior = Clip.none,
- List<
Widget> children = const <Widget>[],
Implementation
HtmlFlex({
super.key,
required this.direction,
this.mainAxisAlignment = MainAxisAlignment.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,
super.children,
}) : assert(
!identical(crossAxisAlignment, CrossAxisAlignment.baseline) ||
textBaseline != null,
'textBaseline is required if you specify the crossAxisAlignment with CrossAxisAlignment.baseline');