copyWith method

SvsImageInfo copyWith({
  1. int? width,
  2. int? height,
  3. int? tileWidth,
  4. int? tileHeight,
  5. String? compression,
  6. Map<String, String>? properties,
  7. String? type,
  8. int? displayColor,
  9. double? downsample,
})

Creates a copy of this SvsImageInfo with the given fields replaced.

Implementation

SvsImageInfo copyWith({
  int? width,
  int? height,
  int? tileWidth,
  int? tileHeight,
  String? compression,
  Map<String, String>? properties,
  String? type,
  int? displayColor,
  double? downsample,
}) {
  return SvsImageInfo(
    width: width ?? this.width,
    height: height ?? this.height,
    tileWidth: tileWidth ?? this.tileWidth,
    tileHeight: tileHeight ?? this.tileHeight,
    compression: compression ?? this.compression,
    properties: properties ?? this.properties,
    type: type ?? this.type,
    displayColor: displayColor ?? this.displayColor,
    downsample: downsample ?? this.downsample,
  );
}