copyWith method

DVImage copyWith({
  1. DVImageSource? source,
  2. String? reference,
  3. String? alt,
  4. int? width,
  5. int? height,
})

Implementation

DVImage copyWith({
  DVImageSource? source,
  String? reference,
  String? alt,
  int? width,
  int? height,
}) {
  return DVImage(
    source: source ?? this.source,
    reference: reference ?? this.reference,
    alt: alt ?? this.alt,
    width: width ?? this.width,
    height: height ?? this.height,
  );
}