copyWith method

Selection copyWith({
  1. int? version,
  2. bool? isHidden,
  3. Duration? animationDuration,
  4. List<Rect> rectifier(
    1. List<Rect>
    )?,
})

Implementation

Selection copyWith({
  int? version,
  bool? isHidden,
  Duration? animationDuration,
  List<Rect> Function(List<Rect>)? rectifier,
}) =>
    Selection(
        version: version ?? this.version,
        text: text,
        start: start,
        end: end,
        startPt: startPt,
        endPt: endPt,
        startAnchor: startAnchor,
        endAnchor: endAnchor,
        rects: rects,
        isHidden: isHidden ?? this.isHidden,
        animationDuration: animationDuration ?? this.animationDuration,
        rectifier: rectifier ?? this.rectifier);