copyWith method

HighlightStyle copyWith({
  1. Color? backgroundColor,
  2. Color? color,
})

A copy with the given fields replaced.

Implementation

HighlightStyle copyWith({Color? backgroundColor, Color? color}) {
  return HighlightStyle(
    backgroundColor: backgroundColor ?? this.backgroundColor,
    color: color ?? this.color,
  );
}