showBanks static method

Future<bool> showBanks(
  1. String url
)

Returns true if launch bank chooser widget is successful.

Implementation

static Future<bool> showBanks(String url) async {
  final Uri uri = Uri.parse(url.trimLeft());
  final bool isWebURL = uri.scheme == 'http' || uri.scheme == 'https';
  if (!isWebURL) {
    throw PlatformException(
        code: 'NOT_A_WEB_SCHEME',
        message:
            'You need to pass in a web URL. This $url is not a web URL.');
  }
  return SbpPaymentsPlatform.instance.showBanks(url);
}