build method

  1. @override
Widget build(
  1. BuildContext context,
  2. List<Widget>? children
)
override

Subclasses should override this function to display the given children, which are the parsed representation of data.

Implementation

@override
Widget build(BuildContext context, List<Widget>? children) {
  if (children!.length == 1) {
    return children.single;
  }
  return Column(
    mainAxisSize: shrinkWrap ? MainAxisSize.min : MainAxisSize.max,
    crossAxisAlignment:
        fitContent ? CrossAxisAlignment.start : CrossAxisAlignment.stretch,
    children: children,
  );
}