HeadingModifier class

Modifier for headings. Intended to be used as a line style.

Uses the common HTML-style for headings with levels 1-6 (inclusive).

The default style for headings is:

  1. TextTheme.headline4
  2. TextTheme.headline5
  3. TextTheme.headline6
  4. TextTheme.subtitle1
  5. TextTheme.subtitle1
  6. TextTheme.subtitle1
Inheritance

Constructors

HeadingModifier(int level)
Create a heading attribute with a level between 1 and 6 (inclusive).
const

Properties

hashCode int
The hash code for this object.
no setterinherited
level int
Level of the heading.
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
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

modify(BuildContext context, Widget child) Widget
Build a text paragraph with some modification.
override
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