LinkStyle class

How a link 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

LinkStyle({Color? color, Color? hoverColor, TextDecoration? decoration, double? decorationThickness, FontWeight? fontWeight})
Creates a LinkStyle. Null fields defer to the theme, then to the default.
const

Properties

color Color?
Link colour. Defaults to the theme's linkColor.
final
decoration TextDecoration?
Defaults to an underline.
final
decorationThickness double?
Underline thickness. Defaults to the font's.
final
fontWeight FontWeight?
Weight of link text. Defaults to the surrounding weight.
final
hashCode int
The hash code for this object.
no setteroverride
hoverColor Color?
Colour under the pointer. Defaults to linkHoverColor.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({Color? color, Color? hoverColor, TextDecoration? decoration, double? decorationThickness, FontWeight? fontWeight}) LinkStyle
A copy with the given fields replaced.
merge(LinkStyle? other) LinkStyle
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) LinkStyle
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(LinkStyle? a, LinkStyle? b, double t) LinkStyle?
Linearly interpolates between two styles.