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