text static method
Implementation
static Text text(String text,{double? size, Color? color, bool bold = false, TextOverflow? overflow,
TextAlign? align, int? maxLines, bool underline = false, bool lineThrough = false}) {
return Text(text, style: TextStyle(color: color ?? Colors.black,
fontSize: size ?? 16,
fontWeight: bold ?FontWeight.w600: FontWeight.normal,
decoration: underline ? TextDecoration.underline : (lineThrough? TextDecoration.lineThrough: TextDecoration.none),
), overflow: overflow, textAlign: align??TextAlign.left, maxLines: maxLines,);
}