HrStyle class

How a horizontal rule 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

HrStyle({double? thickness, Color? color, EdgeInsetsGeometry? padding})
Creates a HrStyle. Null fields defer to the theme, then to the default.
const

Properties

color → Color?
Line colour. Defaults to the theme's hrLineColor.
final
hashCode → int
The hash code for this object.
no setteroverride
padding → EdgeInsetsGeometry?
Space around the line. Defaults to hrLinePadding.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
thickness → double?
Line thickness. Defaults to the theme's hrLineThickness.
final

Methods

copyWith({double? thickness, Color? color, EdgeInsetsGeometry? padding}) → HrStyle
A copy with the given fields replaced.
merge(HrStyle? other) → HrStyle
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) → HrStyle
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(HrStyle? a, HrStyle? b, double t) → HrStyle?
Linearly interpolates between two styles.