antiAliasingMode property
AntiAliasingMode
get
antiAliasingMode
Implementation
AntiAliasingMode get antiAliasingMode {
return _antiAliasingMode;
}
set
antiAliasingMode
(AntiAliasingMode value)
The anti-aliasing strategy used when rendering this Scene.
Defaults to AntiAliasingMode.msaa (set in the constructor) and falls back to AntiAliasingMode.none when the active Flutter GPU backend does not support offscreen MSAA. Assigning AntiAliasingMode.msaa on an unsupported backend is silently ignored, leaving the previous value in place.
Implementation
set antiAliasingMode(AntiAliasingMode value) {
switch (value) {
case AntiAliasingMode.none:
break;
case AntiAliasingMode.msaa:
if (!gpu.gpuContext.doesSupportOffscreenMSAA) {
debugPrint("MSAA is not currently supported on this backend.");
return;
}
break;
}
_antiAliasingMode = value;
}