copyWith method

GestureSettings copyWith({
  1. double? physicalTouchSlop,
  2. double? physicalDoubleTapSlop,
})

Create a new GestureSettings object from an existing value, overwriting all of the provided fields.

Implementation

GestureSettings copyWith({
  double? physicalTouchSlop,
  double? physicalDoubleTapSlop,
}) {
  return GestureSettings(
    physicalTouchSlop: physicalTouchSlop ?? this.physicalTouchSlop,
    physicalDoubleTapSlop: physicalDoubleTapSlop ?? this.physicalDoubleTapSlop,
  );
}