getUpiApps method
Fetches the list of UPI apps.
Returns: A Future containing a list of UpiApp instances representing UPI apps.
Implementation
@override
Future<List<UpiApp>> getUpiApps() async {
List<UpiApp>? upiList =
await FlutterNativeUpi(const MethodChannel('flutter_pay_upi'))
.getAllUpiApps();
if (upiList.isNotEmpty) {
return upiList;
}
return [];
}