copyWith method
Creates a copy of this object but with the given fields replaced with the new values.
Implementation
SelectionStyle copyWith({
Color? backgroundColor,
SelectionBorderSide? borderSide,
bool? dashed,
}) {
return SelectionStyle(
backgroundColor: backgroundColor ?? this.backgroundColor,
borderSide: borderSide ?? this.borderSide,
);
}