SeparatedRow constructor

const SeparatedRow({
  1. Key? key,
  2. TextBaseline? textBaseline,
  3. TextDirection? textDirection,
  4. List<Widget> children = const <Widget>[],
  5. bool includeOuterSeparators = false,
  6. MainAxisSize mainAxisSize = MainAxisSize.max,
  7. VerticalDirection verticalDirection = VerticalDirection.down,
  8. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  9. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  10. required IndexedWidgetBuilder separatorBuilder,
})

Creates a horizontal array of children with separators between each item.

If crossAxisAlignment is CrossAxisAlignment.baseline, then textBaseline must not be null.

The textDirection argument defaults to the ambient Directionality, if any. If there is no ambient directionality, and a text direction is going to be necessary to determine the layout order (which is always the case unless the row has no children or only one child) or to disambiguate start or end values for the mainAxisAlignment, the textDirection must not be null.

Implementation

const SeparatedRow({
  Key? key,
  this.textBaseline,
  this.textDirection,
  this.children = const <Widget>[],
  this.includeOuterSeparators = false,
  this.mainAxisSize = MainAxisSize.max,
  this.verticalDirection = VerticalDirection.down,
  this.mainAxisAlignment = MainAxisAlignment.start,
  this.crossAxisAlignment = CrossAxisAlignment.center,
  required this.separatorBuilder,
}) : super(key: key);