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