detectWidget method
Detector for make icon with svg or not
Implementation
Widget detectWidget() {
Widget a;
if (child != null) {
a = child!;
} else if (icon != null) {
a = Icon(
icon,
color: iconColor,
size: iconSize ?? squareSizeModel?.size,
);
} else if (isSvgIcon == true && svgIcon != null) {
a = FractionallySizedBox(
heightFactor: 0.13.w,
widthFactor: 0.13.w,
child: Iconify(
svgIcon!,
color: iconColor,
size: iconSize,
));
} else {
a = Container();
}
return a;
}