render method
Implementation
@override
Widget render(BuildContext context, AntdErrorBlockStyle style) {
var childList = <Widget>[];
var showImage = image ?? style.builder?.call(status);
if (showImage != null) {
childList.add(AntdStyleProvider<AntdImageStyle>(
style: style.imageStyle, child: showImage));
}
var showTitle = title ?? status?.title;
if (showTitle != null) {
childList.add(AntdBox(
style: style.titleStyle,
child: showTitle,
));
}
var showDesc = desc ?? status?.desc;
if (showDesc != null) {
childList.add(AntdBox(
style: style.titleStyle,
child: showDesc,
));
}
if (extra != null) {
childList.add(AntdBox(
style: style.extraStyle,
child: extra,
));
}
return AntdBox(
style: style.bodyStyle,
child: AntdColumn(
style: style.bodyColumnStyle,
children: childList,
),
);
}