TextKit.bodySmall constructor

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

Creates a Body Small text style (12sp, Regular).

Implementation

factory TextKit.bodySmall(
  String title, {
  Key? key,
  Color? color,
  TextAlign? align,
  int? maxLines,
  TextOverflow? overflow,
  double? height,
}) {
  return TextKit(
    key: key,
    title: title,
    size: 12,
    color: color ?? Colors.black54,
    weight: FontWeight.w400,
    align: align,
    maxLines: maxLines,
    overflow: overflow,
    height: height ?? 1.5,
  );
}