BlockTheme class

Holds typography values for a block of lines in Zefyr editor.

Annotations

Constructors

BlockTheme({TextStyle textStyle, bool inheritLineTextStyle = true, EdgeInsets padding, EdgeInsets linePadding})
Creates a BlockTheme given a set of exact values.
const

Properties

hashCode int
The hash code for this object. [...]
read-only, override
inheritLineTextStyle bool
Whether textStyle specified by this block theme should be merged with text style of each individual line. [...]
final
linePadding EdgeInsets
Space around each individual line within a block, can be null. [...]
final
padding EdgeInsets
Space around the block.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
textStyle TextStyle
Default text style for all text within a block, can be null. [...]
final

Methods

copyWith({TextStyle textStyle, EdgeInsets padding, bool inheritLineTextStyle, EdgeInsets linePadding}) BlockTheme
Creates a copy of this theme but with the given fields replaced with the new values.
merge(BlockTheme other) BlockTheme
Creates a new BlockTheme where each property from this object has been merged with the matching property from the other object. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
override