copyWith method

SelectionConfig copyWith({
  1. int? cursorBlinkRate,
  2. bool? drawRangeCursor,
  3. double? cursorWidth,
  4. Radius? cursorRadius,
  5. Color? cursorColor,
  6. Color? secondaryCursorColor,
  7. Color? selectionColor,
})

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,
  );
}