toText method

Text toText({
  1. double size = 16,
  2. FontWeight weight = FontWeight.w600,
  3. Color color = Colors.white,
  4. int? lines,
  5. TextOverflow? overflow,
  6. 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,
    );