Creates a new ParagraphStyle object.
textAlign: The alignment of the text within the lines of the paragraph.fontWeight: The typeface thickness to use when painting the text (e.g., bold).fontStyle: The typeface variant to use when drawing the letters (e.g., italics).lineCount: Currently not implemented.fontFamily: The name of the font to use when painting the text (e.g., Roboto).fontSize: The size of glyphs (in logical pixels) to use when painting the text.lineHeight: The minimum height of the line boxes, as a multiple of the font size.ellipsis: String used to ellipsize overflowing text.
Source
ParagraphStyle({
TextAlign textAlign,
FontWeight fontWeight,
FontStyle fontStyle,
int lineCount,
String fontFamily,
double fontSize,
double lineHeight,
String ellipsis
}) : _encoded = _encodeParagraphStyle(textAlign,
fontWeight,
fontStyle,
lineCount,
fontFamily,
fontSize,
lineHeight,
ellipsis),
_fontFamily = fontFamily,
_fontSize = fontSize,
_lineHeight = lineHeight,
_ellipsis = ellipsis {
assert(lineCount == null);
}