copyWith method

Offset copyWith({
  1. double? x,
  2. double? y,
})

Implementation

Offset copyWith({double? x, double? y}) {
  return Offset(x ?? this.dx, y ?? this.dy);
}