TextKit.headlineSmall constructor

TextKit.headlineSmall(
  1. String title, {
  2. Key? key,
  3. Color? color,
  4. TextAlign? align,
  5. int? maxLines,
  6. TextOverflow? overflow,
})

Creates a Headline Small text style (24sp, SemiBold).

Implementation

factory TextKit.headlineSmall(
  String title, {
  Key? key,
  Color? color,
  TextAlign? align,
  int? maxLines,
  TextOverflow? overflow,
}) {
  return TextKit(
    key: key,
    title: title,
    size: 24,
    color: color ?? Colors.black,
    weight: FontWeight.w600,
    align: align,
    maxLines: maxLines,
    overflow: overflow,
  );
}