LineParagraph class
Immutable representation of a line of rich text in a Document.
Constructors
-
LineParagraph({String? text, SpanList? spans, List<
LineModifier> ? modifiers}) - Create a line of rich text.
-
LineParagraph.built({required Characters text, required SpanList spans, required BuiltList<
LineModifier> modifiers}) - Create a line with directly initialized fields.
-
LineParagraph.fromSpanned({required SpannedString string, List<
LineModifier> ? modifiers}) -
Create a line with the text and spans of
string
.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
modifiers
→ BuiltList<
LineModifier> -
Properties that can affect how this paragraph is displayed.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spannedText → SpannedString
-
Get a spanned text that combines text and spans.
latefinal
- spans → SpanList
-
The formatting for this line.
final
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - text → Characters
-
Plain text in this line.
final
Methods
-
copyWith(
{Characters? text, SpanList? spans, BuiltList< LineModifier> ? modifiers}) → LineParagraph - Create a copy of this line paragraph with the given field values replaced.
-
match<
T> ({required T line(LineParagraph), required T embed(ParagraphEmbed)}) → T -
Execute
line
if this is a LineParagraph andembed
if this is a ParagraphEmbed.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited