text function

Widget text({
  1. required String text,
  2. double? size,
  3. double? wordSpacing,
  4. double? letterSpacing,
  5. Color? color,
  6. String? fontFamily,
  7. FontWeightEnum? weight,
  8. FontWeight? fontWeight,
  9. bool? softWrap,
  10. TextOverflow? overflow,
  11. TextAlign? textAlign,
})

Implementation

Widget text(
    {required String text,
    double? size,
    double? wordSpacing,
    double? letterSpacing,
    Color? color,
    String? fontFamily,
    FontWeightEnum? weight,
    FontWeight? fontWeight,
    bool? softWrap,
    TextOverflow? overflow,
    TextAlign? textAlign}) {
  return Text(
    text,
    softWrap: softWrap,
    overflow: overflow,
    textAlign: textAlign,
    style: textStyle(
      size: size,
      wordSpacing: wordSpacing,
      letterSpacing: letterSpacing,
      color: color,
      fontFamily: fontFamily,
      weight: weight,
      fontWeight: fontWeight,
      softWrap: softWrap,
      overflow: overflow,
    ),
  );
}