getAllIOSUpiApps method
Implementation
Future<List<UpiApps>> getAllIOSUpiApps() async {
List<UpiApps> upiIndiaApps = [];
try {
final version = await _channel.invokeMethod<String>('get_available_upi');
print(version.toString());
if (version != null) {
List decode = jsonDecode(version);
upiIndiaApps = decode
.map((e) => UpiApps(
upiAppName: e['name'],
packageName: e['package_name'],
appiconbase64: '',
upi_app_code: e['upi_app_code']))
.toList();
return upiIndiaApps;
}
} catch (e) {
if (kDebugMode) {
print("GET AVAILABLE UPI APPS EXCEPTION : ${e.toString()}");
}
return upiIndiaApps;
}
return upiIndiaApps;
}