ParagraphStyle class

Styles that apply to a whole paragraph.

If this text is contained in a shape with a parent placeholder, then these paragraph styles may be inherited from the parent. Which paragraph styles are inherited depend on the nesting level of lists: * A paragraph not in a list will inherit its paragraph style from the paragraph at the 0 nesting level of the list inside the parent placeholder. * A paragraph in a list will inherit its paragraph style from the paragraph at its corresponding nesting level of the list inside the parent placeholder. Inherited paragraph styles are represented as unset fields in this message.

Constructors

ParagraphStyle({String? alignment, String? direction, Dimension? indentEnd, Dimension? indentFirstLine, Dimension? indentStart, double? lineSpacing, Dimension? spaceAbove, Dimension? spaceBelow, String? spacingMode})
ParagraphStyle.fromJson(Map json_)

Properties

alignment String?
The text alignment for this paragraph. Possible string values are:
getter/setter pair
direction String?
The text direction of this paragraph.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
indentEnd Dimension?
The amount indentation for the paragraph on the side that corresponds to the end of the text, based on the current text direction.
getter/setter pair
indentFirstLine Dimension?
The amount of indentation for the start of the first line of the paragraph.
getter/setter pair
indentStart Dimension?
The amount indentation for the paragraph on the side that corresponds to the start of the text, based on the current text direction.
getter/setter pair
lineSpacing double?
The amount of space between lines, as a percentage of normal, where normal is represented as 100.0.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spaceAbove Dimension?
The amount of extra space above the paragraph.
getter/setter pair
spaceBelow Dimension?
The amount of extra space below the paragraph.
getter/setter pair
spacingMode String?
The spacing mode for the paragraph. Possible string values are:
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited