WebGLContextAttributes constructor

WebGLContextAttributes({
  1. bool? alpha,
  2. bool? antialias,
  3. bool? depth,
  4. bool? desynchronized,
  5. bool? failIfMajorPerformanceCaveat,
  6. WebGLPowerPreference? powerPreference,
  7. bool? premultipliedAlpha,
  8. bool? preserveDrawingBuffer,
  9. bool? stencil,
})

Implementation

factory WebGLContextAttributes({
  _i2.bool? alpha,
  _i2.bool? antialias,
  _i2.bool? depth,
  _i2.bool? desynchronized,
  _i2.bool? failIfMajorPerformanceCaveat,
  _i3.WebGLPowerPreference? powerPreference,
  _i2.bool? premultipliedAlpha,
  _i2.bool? preserveDrawingBuffer,
  _i2.bool? stencil,
}) =>
    WebGLContextAttributes._(
      alpha: alpha,
      antialias: antialias,
      depth: depth,
      desynchronized: desynchronized,
      failIfMajorPerformanceCaveat: failIfMajorPerformanceCaveat,
      powerPreference: powerPreference?.name ?? _i6.undefined,
      premultipliedAlpha: premultipliedAlpha,
      preserveDrawingBuffer: preserveDrawingBuffer,
      stencil: stencil,
    );