getContext3d method
Implementation
RenderingContext? getContext3d({
bool alpha = true,
bool depth = true,
bool stencil = false,
bool antialias = true,
bool premultipliedAlpha = true,
bool preserveDrawingBuffer = false,
}) {
final options = {
'alpha': alpha,
'depth': depth,
'stencil': stencil,
'antialias': antialias,
'premultipliedAlpha': premultipliedAlpha,
'preserveDrawingBuffer': preserveDrawingBuffer,
}.jsify();
return getContext('webgl', options) ??
getContext('experimental-webgl', options);
}