build method

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

Builds the widget tree for this builder absolute item.

This method creates a DirectAbsoluteItem 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 DirectAbsoluteItem widget.

Implementation

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