copyWith method

AreaPosition copyWith({
  1. double? xPercentage,
  2. double? yPercentage,
  3. double? widthPercentage,
  4. double? heightPercentage,
  5. double? rotationAngle,
  6. double? cornerRadiusPercentage,
})

Implementation

AreaPosition copyWith({
  double? xPercentage,
  double? yPercentage,
  double? widthPercentage,
  double? heightPercentage,
  double? rotationAngle,
  double? cornerRadiusPercentage,
}) =>
    AreaPosition(
      xPercentage: xPercentage ?? this.xPercentage,
      yPercentage: yPercentage ?? this.yPercentage,
      widthPercentage: widthPercentage ?? this.widthPercentage,
      heightPercentage: heightPercentage ?? this.heightPercentage,
      rotationAngle: rotationAngle ?? this.rotationAngle,
      cornerRadiusPercentage:
          cornerRadiusPercentage ?? this.cornerRadiusPercentage,
    );