TextBlockStyle class

How one kind of text block (paragraph, header, quote, code block, list) is rendered: its base text style, its vertical spacing, and an optional box decoration painted behind the block.

Annotations

Constructors

TextBlockStyle({TextStyle style = const TextStyle(), VerticalSpacing verticalSpacing = VerticalSpacing.zero, VerticalSpacing lineSpacing = VerticalSpacing.zero, BoxDecoration? decoration})
Creates a block style.
const

Properties

decoration BoxDecoration?
Decoration painted behind the block's content area — e.g. the left border of a blockquote or the filled rounded background of a code block. null paints nothing.
final
hashCode int
The hash code for this object.
no setteroverride
lineSpacing VerticalSpacing
Space above and below each individual line within the block.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style TextStyle
Base text style for every line in the block. Inline attributes are resolved on top of this style.
final
verticalSpacing VerticalSpacing
Space above and below the whole block (the group of adjacent lines sharing this block format).
final

Methods

copyWith({TextStyle? style, VerticalSpacing? verticalSpacing, VerticalSpacing? lineSpacing, BoxDecoration? decoration}) TextBlockStyle
A copy of this block style with the given fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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