FlameTextStyle class abstract

A FlameTextStyle is a base class for several classes that collectively describe the desired visual appearance of a "rich-text" document.

The style classes mostly are collections of properties that describe how a potential document should be formatted. However, they have little logic beyond that. The style classes are then passed to document Nodes so that the content of a document can be formatted.

Various FlameTextStyle classes are organized into a tree, with DocumentStyle at the root.

The tree of FlameTextStyles is roughly equivalent to a CSS stylesheet.

Implementers

Constructors

FlameTextStyle()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith(covariant FlameTextStyle other) FlameTextStyle
Creates a new FlameTextStyle, preferring the properties of other if present, falling back to the properties of this.
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.
inherited

Static Methods

merge<T extends FlameTextStyle>(T? style1, T? style2) → T?
Merges two FlameTextStyles together, preferring the properties of style2 if present, falling back to the properties of style1.