envGpuEnabled static method
Sync env check for auto mode — avoids await mis-attributing later sync
work (layout / IME) to ensureAttached wall-clock.
Implementation
static bool envGpuEnabled() {
if (kIsWeb) return false;
try {
return Platform.environment['FLUTTER_ALACRITTY_GPU'] == '1';
} on Object {
return false;
}
}