copyWith method

WebGlContextDescriptor copyWith({
  1. WebGlContextKind? kind,
  2. int? context,
  3. String? canvasSelector,
})

A copy of this value with the given members replaced.

Implementation

WebGlContextDescriptor copyWith({
  WebGlContextKind? kind,
  int? context,
  String? canvasSelector,
}) => WebGlContextDescriptor(
  kind: kind ?? this.kind,
  context: context ?? this.context,
  canvasSelector: canvasSelector ?? this.canvasSelector,
);