copyWith method

OffscreenDeviceOptions copyWith({
  1. int? adapterIndex,
  2. bool? singleContext,
  3. OpenGlClientApi? clientApi,
})

A copy of this value with the given members replaced.

Implementation

OffscreenDeviceOptions copyWith({
  int? adapterIndex,
  bool? singleContext,
  OpenGlClientApi? clientApi,
}) => OffscreenDeviceOptions(
  adapterIndex: adapterIndex ?? this.adapterIndex,
  singleContext: singleContext ?? this.singleContext,
  clientApi: clientApi ?? this.clientApi,
);