toColumn method

Widget toColumn({
  1. Key? key,
  2. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  3. MainAxisSize mainAxisSize = MainAxisSize.max,
  4. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  5. TextDirection? textDirection,
  6. VerticalDirection verticalDirection = VerticalDirection.down,
  7. TextBaseline? textBaseline,
  8. Widget? separator,
})

Implementation

Widget toColumn({
  Key? key,
  MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  MainAxisSize mainAxisSize = MainAxisSize.max,
  CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  TextDirection? textDirection,
  VerticalDirection verticalDirection = VerticalDirection.down,
  TextBaseline? textBaseline,
  Widget? separator,
}) =>
    Column(
      key: key,
      mainAxisAlignment: mainAxisAlignment,
      mainAxisSize: mainAxisSize,
      crossAxisAlignment: crossAxisAlignment,
      textDirection: textDirection,
      verticalDirection: verticalDirection,
      textBaseline: textBaseline,
      children: separator != null && this.length > 0
          ? (this.expand((child) => [child, separator]).toList()
            ..removeLast())
          : this,
    );