copyWith method

UnitBezier copyWith({
  1. double? x1,
  2. double? y1,
  3. double? x2,
  4. double? y2,
})

A copy of this value with the given members replaced.

Implementation

UnitBezier copyWith({double? x1, double? y1, double? x2, double? y2}) =>
    UnitBezier(
      x1: x1 ?? this.x1,
      y1: y1 ?? this.y1,
      x2: x2 ?? this.x2,
      y2: y2 ?? this.y2,
    );