copyWith method
Create a copy with modified values.
Implementation
SelectionConfig copyWith({
int? cursorBlinkRate,
bool? drawRangeCursor,
double? cursorWidth,
Radius? cursorRadius,
Color? cursorColor,
Color? secondaryCursorColor,
Color? selectionColor,
}) {
return SelectionConfig(
cursorBlinkRate: cursorBlinkRate ?? this.cursorBlinkRate,
drawRangeCursor: drawRangeCursor ?? this.drawRangeCursor,
cursorWidth: cursorWidth ?? this.cursorWidth,
cursorRadius: cursorRadius ?? this.cursorRadius,
cursorColor: cursorColor ?? this.cursorColor,
secondaryCursorColor: secondaryCursorColor ?? this.secondaryCursorColor,
selectionColor: selectionColor ?? this.selectionColor,
);
}