render method

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

Implementation

@override
Widget render(BuildContext context, AntdPopoverActionStyle style) {
  return AntdBox(
    style: style.bodyStyle?.copyWith(
        border: AntdScrollItemProvider.ofMaybe(context)?.position ==
                AntdScrollItemPosition.last
            ? BorderSide.none.bottom
            : null),
    disabled: disabled,
    child: AntdRow(
      style: style.childRowStyle,
      children: [
        if (icon != null) AntdIconWrap(style: style.iconStyle, child: icon),
        Expanded(
            child: AntdBox(
          style: style.childStyle,
          child: child,
        ))
      ],
    ),
  );
}