copyWith method

WglContextDescriptor copyWith({
  1. NativePointer? deviceContext,
  2. NativePointer? shareContext,
  3. NativePointer? getProcAddress,
})

A copy of this value with the given members replaced.

Implementation

WglContextDescriptor copyWith({
  NativePointer? deviceContext,
  NativePointer? shareContext,
  NativePointer? getProcAddress,
}) => WglContextDescriptor(
  deviceContext: deviceContext ?? this.deviceContext,
  shareContext: shareContext ?? this.shareContext,
  getProcAddress: getProcAddress ?? this.getProcAddress,
);