getParagraphStyle method
ParagraphStyle
getParagraphStyle({
- TextAlign? textAlign,
- TextDirection? textDirection,
- TextScaler textScaler = TextScaler.noScaling,
- String? ellipsis,
- int? maxLines,
- TextHeightBehavior? textHeightBehavior,
- Locale? locale,
- String? fontFamily,
- double? fontSize,
- FontWeight? fontWeight,
- FontStyle? fontStyle,
- double? height,
- 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,
);
}