getText method

Widget getText()

Defines text widget

Implementation

Widget getText() {
  if (text == null && iconWidget != null) {
    return const SizedBox.shrink();
  }
  return UFUText(
    text: text ?? 'Default',
    // fontFamily: fontFamily,
    height: 1,
    fontWeight: fontWeight,
    textColor: getTextColor(colorType),
    textSize: getTextSize(size),
  );
}