onDiagnostic property
Called with a GlassAdaptiveDiagnostic whenever the effective quality changes. Provides P75/P95 raster timings, change reason, phase, and frame count — everything needed for bug reports and analytics.
onDiagnostic: (d) {
if (d.reason == GlassQualityChangeReason.warmupComplete) {
analytics.log('glass_warmup', {'p75': d.p75Ms, 'quality': d.to.name});
}
},
Implementation
final void Function(GlassAdaptiveDiagnostic)? onDiagnostic;