static Future<void> open(String pid, String url) async { try { await _channel.invokeMethod('open', {'pid': pid, 'link': url}); } on PlatformException catch (e) { print("open Error: ${e.message}"); } }