copyWith method

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

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

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