WebGLContextAttributes constructor
WebGLContextAttributes({})
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,
);