getUPIApps static method
This method returns the list of installed UPI applications
Implementation
static Future<List?> getUPIApps() {
Future<List?> response;
if(kIsWeb) {
var completer = new Completer<List>();
completer.complete(<dynamic>[]);
response = completer.future;
}
MethodChannel channel = const MethodChannel("cashfree_pg");
// ignore: unnecessary_null_comparison
if(channel != null) {
response = channel.invokeListMethod("getUPIApps");
} else {
var completer = new Completer<List>();
completer.complete(<dynamic>[]);
response = completer.future;
}
return response;
}