title method

Widget title(
  1. BuildContext context, {
  2. double fontSize = CustomFontSize.f22,
  3. Color? color,
  4. int? maxLines,
  5. double? letterSpacing,
  6. FontWeight? fontWeight,
})

Implementation

Widget title(
  BuildContext context, {
  double fontSize = CustomFontSize.f22,
  Color? color,
  int? maxLines,
  double? letterSpacing,
  FontWeight? fontWeight,
}) {
  return AutoSizeText(
    this,
    maxLines: maxLines,
    style: Theme.of(context).textTheme.headline5!.copyWith(
          fontSize: fontSize,
          color: color,
          letterSpacing: letterSpacing,
          fontWeight: fontWeight,
        ),
  );
}