readEngineRevisionFromSdk function
Reads the engine revision for a Flutter SDK without running flutter:
<sdk>/bin/internal/engine.version is authoritative and stable. Falls
back to flutter --version --machine via the SDK's own binary (never
PATH) when the file is absent (older SDK layouts).
Implementation
Future<String> readEngineRevisionFromSdk(String flutterSdkPath) async =>
(await const HostFlutterSdkProbe().inspect(flutterSdkPath)).engineRevision;