copyWith method

MetalContextDescriptor copyWith({
  1. NativePointer? device,
})

A copy of this value with the given members replaced.

Implementation

MetalContextDescriptor copyWith({NativePointer? device}) =>
    MetalContextDescriptor(device: device ?? this.device);