copyWith method
Returns a copy of this KittyImageData with updated fields.
Implementation
KittyImageData copyWith({
int? imageId,
int? pixelWidth,
int? pixelHeight,
Uint8List? rgbaPixels,
int? gridCols,
int? gridRows,
int? version,
int? format,
}) => KittyImageData(
imageId: imageId ?? this.imageId,
pixelWidth: pixelWidth ?? this.pixelWidth,
pixelHeight: pixelHeight ?? this.pixelHeight,
rgbaPixels: rgbaPixels ?? this.rgbaPixels,
gridCols: gridCols ?? this.gridCols,
gridRows: gridRows ?? this.gridRows,
version: version ?? this.version,
format: format ?? this.format,
);