title static method

AppTypography title(
  1. String text,
  2. TitleType type, {
  3. Variant? variant,
  4. TextStyle? style,
  5. Color? color,
  6. double? fontSize,
  7. FontWeight? fontWeight,
  8. double? letterSpacing,
  9. double? lineHeight,
  10. TextAlign? textAlign,
  11. int? maxLines,
})

Implementation

static AppTypography title(
  String text,
  TitleType type, {
  Variant? variant,
  TextStyle? style,
  Color? color,
  double? fontSize,
  FontWeight? fontWeight,
  double? letterSpacing,
  double? lineHeight,
  TextAlign? textAlign,
  int? maxLines,
}) {
  return AppTypography(
    text: text,
    titleType: type,
    variant: variant ?? Variant.medium,
    style: style,
    color: color,
    fontSize: fontSize,
    fontWeight: fontWeight,
    letterSpacing: letterSpacing,
    lineHeight: lineHeight,
    textAlign: textAlign,
    maxLines: maxLines,
  );
}