copyWith method

LinkStyle copyWith({
  1. Color? color,
  2. Color? hoverColor,
  3. TextDecoration? decoration,
  4. double? decorationThickness,
  5. FontWeight? fontWeight,
})

A copy with the given fields replaced.

Implementation

LinkStyle copyWith({
  Color? color,
  Color? hoverColor,
  TextDecoration? decoration,
  double? decorationThickness,
  FontWeight? fontWeight,
}) {
  return LinkStyle(
    color: color ?? this.color,
    hoverColor: hoverColor ?? this.hoverColor,
    decoration: decoration ?? this.decoration,
    decorationThickness: decorationThickness ?? this.decorationThickness,
    fontWeight: fontWeight ?? this.fontWeight,
  );
}