text static method

TextStyle text({
  1. Color? color,
  2. double? size,
  3. FontWeight weight = FontWeight.normal,
  4. double? letterSpacing,
  5. TextDecoration? line,
})

Implementation

static TextStyle text({
  Color? color,
  double? size,
  FontWeight weight: FontWeight.normal,
  double? letterSpacing,
  TextDecoration? line,
  // TextOverflow? flow,
}) {
  return TextStyle(
      color: color,
      fontSize: size,
      fontWeight: weight,
      fontFamily: 'PromptRegular',
      decoration: line ?? null,
      // overflow: flow ?? null,
      // height: 1.2,
      letterSpacing: letterSpacing);
}