checkMacOSInstallLocation method
Returns macOS install-location status when supported.
Implementation
@override
Future<MacOSInstallLocationStatus> checkMacOSInstallLocation() async {
final status = await methodChannel.invokeMapMethod<String, Object?>(
"checkMacOSInstallLocation",
);
if (status == null) {
return const MacOSInstallLocationStatus(
kind: MacOSInstallLocationKind.unsupported,
bundlePath: null,
targetPath: null,
);
}
return MacOSInstallLocationStatus.fromJson(
Map<String, Object?>.from(status),
);
}