render method

  1. @override
Widget render(
  1. BuildContext context,
  2. AntdResultStyle style
)
override

Implementation

@override
Widget render(BuildContext context, AntdResultStyle style) {
  var childList = <Widget>[];
  var showIcon = icon ?? status?.icon;
  if (showIcon != null) {
    childList.add(AntdIconWrap(style: style.iconStyle, child: showIcon));
  }

  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.descStyle,
      child: showDesc,
    ));
  }

  return AntdBox(
    style: style.bodyStyle,
    child: AntdColumn(
      style: style.columnStyle,
      children: childList,
    ),
  );
}