text static method

Widget text(
  1. String text, {
  2. double size = defaultTextSize,
  3. Color? color,
  4. TextAlign textAlign = TextAlign.left,
  5. FontWeight fontWeight = FontWeight.normal,
})

Implementation

static Widget text(String text,
        {double size = defaultTextSize,
        Color? color,
        TextAlign textAlign = TextAlign.left,
        FontWeight fontWeight = FontWeight.normal}) =>
    Text(
      text,
      textAlign: textAlign,
      style: TextStyle(
          fontFamily: defaultFontFamily,
          color: color ?? AppColors.textColor,
          fontSize: size,
          fontWeight: fontWeight),
    );