copyWith method

  1. @override
LinkTheme copyWith({
  1. TextStyle? style,
  2. Color? hoverColor,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
LinkTheme copyWith({
  TextStyle? style,
  Color? hoverColor,
}) {
  return LinkTheme(
    style: style ?? this.style,
    hoverColor: hoverColor ?? this.hoverColor,
    lineType: lineType ?? this.lineType,
  );
}