isAntiAliasingModeSupported static method
Whether mode is supported by the active Flutter GPU backend.
Every mode except AntiAliasingMode.msaa is supported everywhere; MSAA requires offscreen MSAA support, which a subset of GLES-only devices lacks. AntiAliasingMode.auto always reports supported since it resolves to a supported technique by definition. Useful for building settings UI without touching the Flutter GPU API directly.
Implementation
static bool isAntiAliasingModeSupported(AntiAliasingMode mode) {
return mode != AntiAliasingMode.msaa ||
gpu.gpuContext.doesSupportOffscreenMSAA;
}