copyWith method

VulkanBorrowedTextureDescriptor copyWith({
  1. LogicalSize? logicalSize,
  2. int? physicalWidth,
  3. int? physicalHeight,
  4. VulkanContextDescriptor? context,
  5. List<VulkanBorrowedTexture>? textures,
  6. int? format,
  7. int? finalLayout,
  8. VulkanImageOwner? owner,
})

A copy of this value with the given members replaced.

Implementation

VulkanBorrowedTextureDescriptor copyWith({
  LogicalSize? logicalSize,
  int? physicalWidth,
  int? physicalHeight,
  VulkanContextDescriptor? context,
  List<VulkanBorrowedTexture>? textures,
  int? format,
  int? finalLayout,
  VulkanImageOwner? owner,
}) => VulkanBorrowedTextureDescriptor(
  logicalSize: logicalSize ?? this.logicalSize,
  physicalWidth: physicalWidth ?? this.physicalWidth,
  physicalHeight: physicalHeight ?? this.physicalHeight,
  context: context ?? this.context,
  textures: textures ?? this.textures,
  format: format ?? this.format,
  finalLayout: finalLayout ?? this.finalLayout,
  owner: owner ?? this.owner,
);