Paragraph class

Inheritance
Implemented types
Implementers
Annotations
  • @JsonSerializable.new()

Constructors

Paragraph({String text = "", String textAlign = 'left', int indent = 0, String? styleName})
Paragraph.fromJson(Map<String, dynamic> json)
factory

Properties

contentVersion int
no setterinherited
fragments List<FNode>
getter/setter pairoverride-getter
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pairinherited
indent int
Paragraph indentation level (0 = no indentation).
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
styleName String?
Style applied to the paragraph (e.g. "normal", "heading1"). If null, uses the explicit properties of the paragraph.
getter/setter pair
text String
no setteroverride
textAlign String
Text alignment (left, center, right, justify).
getter/setter pair
type String
getter/setter pair

Methods

applyStyle(ParagraphStyle style) → void
Applies a style to the paragraph, overriding the properties.
bumpVersion() → void
Increment the version so the delta system knows this node changed.
inherited
getChildren() List<FNode>
override
getStyle() ParagraphStyle
Gets the style applied to this paragraph. If styleName is null or not found, returns the "normal" style.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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