buildBuilder method
Widget?
buildBuilder(
)
override
Implementation
@override
Widget? buildBuilder() {
if (currentIndex < 0) {
return null;
}
var item = widget.items[currentIndex];
return AntdBox(
onLayout: (ctx) {
bool isOpen = contentRenderBox != null;
if (contentRenderBox == null || ctx.hasSizeChange) {
contentRenderBox = ctx.renderBox;
if (!isOpen) {
openAnimation();
setState(() {});
}
}
},
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
AntdBox(
style: style.itemStyle,
child: item.item(close, this),
),
if (widget.extra != null)
AntdBox(
style: style.extraStyle,
child: widget.extra?.call(close, this),
)
],
),
);
}