displaySmall static method
Text
displaySmall(
- String text, {
- Color? color,
- FontWeight? fontWeight,
- TextAlign textAlign = TextAlign.start,
- TextOverflow? overflow,
- int? maxLine,
"displaySmall" style text
Implementation
static Text displaySmall(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().displaySmall, color, fontWeight),
textAlign: textAlign);
}