copyWith method

PhotoSize copyWith({
  1. String? type,
  2. File? photo,
  3. int? width,
  4. int? height,
  5. List<int>? progressiveSizes,
})

Implementation

PhotoSize copyWith({
  String? type,
  File? photo,
  int? width,
  int? height,
  List<int>? progressiveSizes,
}) =>
    PhotoSize(
      type: type ?? this.type,
      photo: photo ?? this.photo,
      width: width ?? this.width,
      height: height ?? this.height,
      progressiveSizes: progressiveSizes ?? this.progressiveSizes,
    );