copyWith method

DirectionallyExtendSelectionEvent copyWith({
  1. double? dx,
  2. bool? isEnd,
  3. SelectionExtendDirection? direction,
})

Makes a copy of this object with its property replaced with the new values.

Implementation

DirectionallyExtendSelectionEvent copyWith({
  double? dx,
  bool? isEnd,
  SelectionExtendDirection? direction,
}) {
  return DirectionallyExtendSelectionEvent(
    dx: dx ?? this.dx,
    isEnd: isEnd ?? this.isEnd,
    direction: direction ?? this.direction,
  );
}