navigateToAppstore method
Navigates to the App Store to download the specified UPI payment app.
Parameters:
url
: The App Store URL for the UPI payment app.
Returns: A Future that completes after navigating to the App Store.
Implementation
Future<void> navigateToAppstore(String? url) async {
try {
await _channel.invokeMethod(
'navigateToAppstore',
{
'uri': url,
},
);
} catch (error) {
throw Exception(error);
}
}