copyWith method

ImageProperties copyWith({
  1. Rect? cropRect,
  2. double? rotation,
  3. bool? flipHorizontal,
  4. bool? flipVertical,
})

Implementation

ImageProperties copyWith({
  Rect? cropRect,
  double? rotation,
  bool? flipHorizontal,
  bool? flipVertical,
}) {
  return ImageProperties(
    cropRect: cropRect ?? this.cropRect,
    rotation: rotation ?? this.rotation,
    flipHorizontal: flipHorizontal ?? this.flipHorizontal,
    flipVertical: flipVertical ?? this.flipVertical,
  );
}