openURL static method

Future<bool> openURL(
  1. String url
)

Implementation

static Future<bool> openURL(String url) async {
  try {
    final success = await launchUrlString(
      url,
      mode: LaunchMode.externalApplication,
    );
    if (!success) {
      throw WalletConnectError(code: 0, message: 'Can not open $url');
    }
    return true;
  } catch (e) {
    rethrow;
  }
}