toText method
Text
toText({
- double size = 16,
- FontWeight weight = FontWeight.w600,
- Color color = Colors.white,
- int? lines,
- TextOverflow? overflow,
- TextAlign? align,
Implementation
Text toText({
double size = 16,
FontWeight weight = FontWeight.w600,
Color color = Colors.white,
int? lines,
TextOverflow? overflow,
TextAlign? align,
}) =>
Text(
this,
style: GlobalConfig.fontFamily.fsize(size).fweight(weight).fcolor(color),
maxLines: lines,
overflow: overflow,
textAlign: align,
);