render method
Implementation
@override
Widget render(BuildContext context, AntdIconStyle style) {
return AntdBox(
style: style.bodyStyle,
onTap: onTap,
child: AntdFlex(
direction: row ? Axis.horizontal : Axis.vertical,
style: style.flexStyle,
children: [
if (child != null)
AntdBox(
style: style.childStyle,
child: child,
),
if (icon != null)
Icon(
icon,
size: style.size,
color: style.color,
fill: style.fill,
weight: style.weight,
grade: style.grade,
opticalSize: style.opticalSize,
shadows: style.shadows,
semanticLabel: style.semanticLabel,
textDirection: style.textDirection,
applyTextScaling: style.applyTextScaling,
blendMode: style.blendMode,
)
]),
);
}