build property

  1. @override
Widget Function({required Widget child, required BuildContext context}) get build
override

Implementation

@override
Widget Function({
  required BuildContext context,
  required Widget child,
}) get build {
  return ({
    required BuildContext context,
    required Widget child,
  }) {
    final children = [child];
    for (final plugin in plugins) {
      children.add(plugin.attach(context, children.last));
    }
    return Column(
      key: key,
      crossAxisAlignment: crossAxisAlignment,
      mainAxisAlignment: mainAxisAlignment,
      mainAxisSize: mainAxisSize,
      // TODO: Not yet supported by Flutter stable.
      //spacing: spacing,
      textDirection: textDirection,
      verticalDirection: verticalDirection,
      children: children,
    );
  };
}