buildViewProbe static method
Returns only dpr/vw/vh — skips the hit-test half of build because the
CFE rejects HitTestResult in synthetic eval scopes on Dart 3.12+.
Implementation
static String buildViewProbe() {
final body = [
"'{\"dpr\":'",
'$_view.devicePixelRatio.toString()',
"',\"vw\":'",
'($_view.physicalSize.width / $_view.devicePixelRatio).toString()',
"',\"vh\":'",
'($_view.physicalSize.height / $_view.devicePixelRatio).toString()',
"'}'",
].join(' + ');
return body;
}