getParagraphStyle method

  1. @override
ParagraphStyle getParagraphStyle({
  1. TextAlign? textAlign,
  2. TextDirection? textDirection,
  3. TextScaler textScaler = TextScaler.noScaling,
  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,
})
override

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,
  TextScaler textScaler = TextScaler.noScaling,
  String? ellipsis,
  int? maxLines,
  ui.TextHeightBehavior? textHeightBehavior,
  Locale? locale,
  String? fontFamily,
  double? fontSize,
  FontWeight? fontWeight,
  FontStyle? fontStyle,
  double? height,
  StrutStyle? strutStyle,
}) {
  return textStyle.getParagraphStyle(
    textAlign: textAlign,
    textDirection: textDirection,
    textScaler: textScaler,
    ellipsis: ellipsis,
    maxLines: maxLines,
    textHeightBehavior: textHeightBehavior,
    locale: locale,
    fontFamily: fontFamily,
    fontSize: fontSize,
    fontWeight: fontWeight,
    fontStyle: fontStyle,
    height: height,
    strutStyle: strutStyle,
  );
}