StoreFlowLauncher class
Opens native store flows for updates:
- Android: launches the Play Store page for the running app via the
platform
market://intent — the real store flow, no browser hop. - iOS: presents the native
SKStoreProductViewControllersheet for the Apple ID from the metadata, so users never leave the app.
Web and desktop builds return StoreLaunchResult.unavailable; use the direct download flow there instead.
Constructors
- StoreFlowLauncher({MethodChannel? methodChannel, String? iosAppleId})
-
Creates a launcher.
methodChannelis injectable for tests.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- iosAppleId → String?
-
The Apple ID (numeric, from
apps.apple.com/app/id…) used to present the native App Store product sheet on iOS.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
launch(
) → Future< StoreLaunchResult> - Launches the native store flow for the current platform.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited