bodyMedium static method

Text bodyMedium(
  1. String text, {
  2. Color? color,
  3. FontWeight? fontWeight,
  4. TextAlign textAlign = TextAlign.start,
  5. TextOverflow? overflow,
  6. int? maxLine,
})

"bodyMedium" style text

Implementation

static Text bodyMedium(
  String text, {
  Color? color,
  FontWeight? fontWeight,
  TextAlign textAlign = TextAlign.start,
  TextOverflow? overflow,
  int? maxLine,
}) {
  return Text(text,
      overflow: (overflow != null
          ? overflow
          : (maxLine != null && maxLine > 0
              ? TextOverflow.ellipsis
              : TextOverflow.visible)),
      maxLines: maxLine,
      style: _merge(TGView.textTheme().bodyMedium, color, fontWeight),
      textAlign: textAlign);
}