copyWith method

ImageValue copyWith({
  1. XFile? file,
  2. String? url,
  3. bool? isChanged,
})

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