AttributeTheme class

Holds style information for all format attributes supported by Zefyr editor.

Annotations

Constructors

AttributeTheme({TextStyle bold, TextStyle italic, TextStyle link, LineTheme heading1, LineTheme heading2, LineTheme heading3, BlockTheme bulletList, BlockTheme numberList, BlockTheme quote, BlockTheme code})
Creates a AttributeTheme given a set of exact values.
AttributeTheme.fallback(BuildContext context, LineTheme defaultLineTheme)
The default attribute theme.
factory

Properties

bold TextStyle
Style used to render "bold" text.
final
bulletList BlockTheme
Style theme used to render bullet lists.
final
code BlockTheme
Style theme used to render code blocks.
final
hashCode int
The hash code for this object. [...]
read-only, override
heading1 LineTheme
Style theme used to render largest headings.
final
heading2 LineTheme
Style theme used to render medium headings.
final
heading3 LineTheme
Style theme used to render smaller headings.
final
italic TextStyle
Style used to render "italic" text.
final
Style used to render text containing links.
final
numberList BlockTheme
Style theme used to render number lists.
final
quote BlockTheme
Style theme used to render quote blocks.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

copyWith({TextStyle bold, TextStyle italic, TextStyle link, LineTheme heading1, LineTheme heading2, LineTheme heading3, BlockTheme bulletList, BlockTheme numberList, BlockTheme quote, BlockTheme code}) AttributeTheme
Creates a new AttributeTheme where each property from this object has been merged with the matching property from the other object.
merge(AttributeTheme other) AttributeTheme
Creates a new AttributeTheme 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