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