build method

  1. @override
Widget build(
  1. BuildContext context
)
override

Builds the widget tree for this builder flex item.

This method creates a DirectFlexItem widget with the same properties, but uses the builder function to construct the child widget dynamically. The builder is called with the current BuildContext and a LayoutBox providing access to layout information.

Returns the constructed DirectFlexItem widget.

Implementation

@override
Widget build(BuildContext context) {
  return DirectFlexItem(
    paintOrder: paintOrder,
    width: width,
    height: height,
    minWidth: minWidth,
    maxWidth: maxWidth,
    minHeight: minHeight,
    maxHeight: maxHeight,
    flexGrow: flexGrow,
    flexShrink: flexShrink,
    aspectRatio: aspectRatio,
    top: top,
    left: left,
    bottom: bottom,
    right: right,
    alignSelf: alignSelf,
    needLayoutBox: true,
    child: FallbackWidget(child: LayoutBoxBuilder(builder: builder)),
  );
}