regular static method

TextStyle regular({
  1. double? height,
  2. double? letterSpacing,
  3. Color color = Colors.black,
  4. bool isUnderline = false,
  5. double fontSize = 15,
})

Implementation

static TextStyle regular({
  double? height,
  double? letterSpacing,
  Color color = Colors.black,
  bool isUnderline = false,
  double fontSize = 15,
}) {
  return GoogleFonts.roboto(
      fontSize: fontSize,
      fontWeight: FontWeight.w400,
      color: color,
      height: height,
      decoration:
          isUnderline ? TextDecoration.underline : TextDecoration.none,
      letterSpacing: letterSpacing);
}