getParagraphStyle method

  1. @override
ParagraphStyle getParagraphStyle({
  1. TextAlign? textAlign,
  2. TextDirection? textDirection,
  3. double textScaleFactor = 1.0,
  4. String? ellipsis,
  5. int? maxLines,
  6. TextHeightBehavior? textHeightBehavior,
  7. Locale? locale,
  8. String? fontFamily,
  9. double? fontSize,
  10. FontWeight? fontWeight,
  11. FontStyle? fontStyle,
  12. double? height,
  13. StrutStyle? strutStyle,
})
inherited

The style information for paragraphs, encoded for use by dart:ui.

If the textScaleFactor argument is omitted, it defaults to one. The other arguments may be null. The maxLines argument, if specified and non-null, must be greater than zero.

If the font size on this style isn't set, it will default to 14 logical pixels.

Implementation

@override
ui.ParagraphStyle getParagraphStyle(
    {TextAlign? textAlign,
    TextDirection? textDirection,
    double textScaleFactor = 1.0,
    String? ellipsis,
    int? maxLines,
    TextHeightBehavior? textHeightBehavior,
    Locale? locale,
    String? fontFamily,
    double? fontSize,
    FontWeight? fontWeight,
    FontStyle? fontStyle,
    double? height,
    StrutStyle? strutStyle}) {
  return style.getParagraphStyle(
    textAlign: textAlign,
    textDirection: textDirection,
    textScaleFactor: textScaleFactor,
    ellipsis: ellipsis,
    maxLines: maxLines,
    textHeightBehavior: textHeightBehavior,
    locale: locale,
    fontFamily: fontFamily,
    fontSize: fontSize,
    fontWeight: fontWeight,
    fontStyle: fontStyle,
    height: height,
    strutStyle: strutStyle,
  );
}