link method

Widget link(
  1. BuildContext context, {
  2. double fontSize = CustomFontSize.f20,
  3. TextAlign? textAlign,
  4. int? maxLines,
  5. Color? color,
  6. TextDecoration? decoration,
  7. double? letterSpacing,
  8. FontWeight? fontWeight,
})

Implementation

Widget link(BuildContext context,
        {double fontSize = CustomFontSize.f20,
        TextAlign? textAlign,
        int? maxLines,
        Color? color,
        TextDecoration? decoration,
        double? letterSpacing,
        FontWeight? fontWeight}) =>
    AutoSizeText(
      this,
      textAlign: textAlign,
      maxLines: maxLines,
      style: Theme.of(context).textTheme.headline4!.copyWith(
          fontSize: fontSize,
          decoration: TextDecoration.underline,
          color: color ?? Theme.of(context).textTheme.headline5!.color,
          letterSpacing: letterSpacing,
          fontWeight: fontWeight),
    );