buildColumnWidget method Null safety

Widget buildColumnWidget(
  1. BuildContext context,
  2. List<Widget> children,
  3. {TextDirection? dir}
)

Builds Column.

Implementation

Widget buildColumnWidget(
  BuildContext context,
  List<Widget> children, {
  TextDirection? dir,
}) {
  if (children.length == 1) {
    return children.first;
  }

  return Column(
    crossAxisAlignment: CrossAxisAlignment.start,
    mainAxisSize: MainAxisSize.min,
    textDirection: dir,
    children: children,
  );
}