copyWith method

KittyImageData copyWith({
  1. int? imageId,
  2. int? pixelWidth,
  3. int? pixelHeight,
  4. Uint8List? rgbaPixels,
  5. int? gridCols,
  6. int? gridRows,
  7. int? version,
  8. int? format,
})

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,
);