copyWith method
Crée une copie avec des modifications optionnelles
Implementation
ImageValue copyWith({XFile? file, String? url, bool? isChanged}) {
return ImageValue(
file: file ?? this.file,
url: url ?? this.url,
isChanged: isChanged ?? this.isChanged,
);
}