copyWith method
Creates a copy of this theme with the specified properties replaced.
Implementation
SelectionTheme copyWith({
Color? color,
Color? borderColor,
double? borderWidth,
}) {
return SelectionTheme(
color: color ?? this.color,
borderColor: borderColor ?? this.borderColor,
borderWidth: borderWidth ?? this.borderWidth,
);
}