copyWith method

IoSurfaceRingDescriptor copyWith({
  1. LogicalSize? logicalSize,
  2. int? bufferCount,
  3. MetalContextDescriptor? context,
})

A copy of this value with the given members replaced.

Implementation

IoSurfaceRingDescriptor copyWith({
  LogicalSize? logicalSize,
  int? bufferCount,
  MetalContextDescriptor? context,
}) => IoSurfaceRingDescriptor(
  logicalSize: logicalSize ?? this.logicalSize,
  bufferCount: bufferCount ?? this.bufferCount,
  context: context ?? this.context,
);