description method

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

Implementation

Widget description(BuildContext context,
        {double fontSize = CustomFontSize.f18,
        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: decoration,
          color: color ?? Theme.of(context).textTheme.headline5!.color,
          letterSpacing: letterSpacing,
          fontWeight: fontWeight),
    );