isPlayStoreInstall function
Whether this running build was installed from the Google Play Store.
Always false on non-Android platforms, on sideloaded/ADB installs, and
when the install source cannot be determined — the check fails open so an
unknown source never disables updates.
Implementation
Future<bool> isPlayStoreInstall() async =>
(await installerPackageName()) == playStorePackageName;