copyWith method

Selection copyWith({
  1. Position? start,
  2. Position? end,
})

Implementation

Selection copyWith({Position? start, Position? end}) {
  return Selection(
    start: start ?? this.start,
    end: end ?? this.end,
  );
}