getIcon method

Widget getIcon()

Implementation

Widget getIcon() {
  if (icon == null) return const SizedBox.shrink();

  return UFUIcon(
    icon!,
    size: iconSize,
    color: color ?? AppTheme.themeColors.text,
  );
}