copyWith method
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,
);