WebGLContextAttributes constructor

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

Implementation

factory WebGLContextAttributes(
        {bool? alpha,
        bool? depth,
        bool? stencil,
        bool? antialias,
        bool? premultipliedAlpha,
        bool? preserveDrawingBuffer,
        WebGLPowerPreference? powerPreference,
        bool? failIfMajorPerformanceCaveat,
        bool? desynchronized}) =>
    WebGLContextAttributes._(
        alpha: alpha ?? true,
        depth: depth ?? true,
        stencil: stencil ?? false,
        antialias: antialias ?? true,
        premultipliedAlpha: premultipliedAlpha ?? true,
        preserveDrawingBuffer: preserveDrawingBuffer ?? false,
        powerPreference:
            powerPreference?.value ?? WebGLPowerPreference.valueDefault.value,
        failIfMajorPerformanceCaveat: failIfMajorPerformanceCaveat ?? false,
        desynchronized: desynchronized ?? false);