copyWith method

OverlayImage copyWith({
  1. String? id,
  2. ImageSource? source,
  3. String? imageUrl,
  4. Offset? position,
  5. Size? size,
  6. double? rotation,
  7. bool? isLocal,
})

Implementation

OverlayImage copyWith({
  String? id,
  ImageSource? source,
  String? imageUrl,
  Offset? position,
  Size? size,
  double? rotation,
  bool? isLocal,
}) {
  return OverlayImage(
    id: id ?? this.id,
    source: source ?? this.source,
    imageUrl: imageUrl ?? this.imageUrl,
    position: position ?? this.position,
    size: size ?? this.size,
    rotation: rotation ?? this.rotation,
    isLocal: isLocal ?? this.isLocal,
  );
}