HeadingStyle class
How a # heading is drawn.
Every field is optional. An unset field falls back to the theme, then to the value the package used before this style existed — so setting one field changes one thing and nothing else moves.
A style on the widget wins over the theme per field, not per object.
- Annotations
Constructors
- HeadingStyle({TextStyle? textStyle, EdgeInsetsGeometry? padding, bool? showDivider, Color? dividerColor, double? dividerThickness, EdgeInsetsGeometry? dividerPadding})
-
Creates a HeadingStyle. Null fields defer to the theme, then to the default.
const
Properties
- dividerColor → Color?
-
Colour of that rule.
final
- dividerPadding → EdgeInsetsGeometry?
-
Space around that rule.
final
- dividerThickness → double?
-
Thickness of that rule.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- padding → EdgeInsetsGeometry?
-
Space around the heading. Defaults to none.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showDivider → bool?
-
Whether a rule is drawn under the heading.
final
- textStyle → TextStyle?
-
Applied on top of the level style from the theme.
final
Methods
-
copyWith(
{TextStyle? textStyle, EdgeInsetsGeometry? padding, bool? showDivider, Color? dividerColor, double? dividerThickness, EdgeInsetsGeometry? dividerPadding}) → HeadingStyle - A copy with the given fields replaced.
-
merge(
HeadingStyle? other) → HeadingStyle -
This style, with any unset field taken from
other, field by field. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
ColorScheme scheme) → HeadingStyle - This style with every remaining default filled in.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
lerp(
HeadingStyle? a, HeadingStyle? b, double t) → HeadingStyle? - Linearly interpolates between two styles.