TextKit.bodyMedium constructor

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

Creates a Body Medium text style (14sp, Regular).

Implementation

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