提交 8c170a51 authored 作者: JarvanMo's avatar JarvanMo

rm unsed func and static

上级 27b8ea3a
...@@ -26,7 +26,7 @@ class _MyAppState extends State<MyApp> { ...@@ -26,7 +26,7 @@ class _MyAppState extends State<MyApp> {
String platformVersion; String platformVersion;
// Platform messages may fail, so we use a try/catch PlatformException. // Platform messages may fail, so we use a try/catch PlatformException.
try { try {
platformVersion = await WechatPlugin.platformVersion; // platformVersion = await WechatPlugin.platformVersion;
} on PlatformException { } on PlatformException {
platformVersion = 'Failed to get platform version.'; platformVersion = 'Failed to get platform version.';
} }
......
...@@ -32,18 +32,18 @@ class WechatPlugin { ...@@ -32,18 +32,18 @@ class WechatPlugin {
await _channel.invokeMethod("shareText",model.toMap()); await _channel.invokeMethod("shareText",model.toMap());
} }
static Future shareMiniProgram(WeChatShareMiniProgramModel model)async{ Future shareMiniProgram(WeChatShareMiniProgramModel model)async{
return await _channel.invokeMethod("shareMiniProgram",model.toMap()); return await _channel.invokeMethod("shareMiniProgram",model.toMap());
} }
static Future shareMusic(WeChatShareMusicModel model)async{ Future shareMusic(WeChatShareMusicModel model)async{
return await _channel.invokeMethod("shareMusic",model.toMap()); return await _channel.invokeMethod("shareMusic",model.toMap());
} }
static Future<dynamic> _handler(MethodCall methodCall){ Future<dynamic> _handler(MethodCall methodCall){
if("onWeChatResponse" == methodCall.method){ if("onWeChatResponse" == methodCall.method){
_responseStreamController.add(methodCall.arguments); _responseStreamController.add(methodCall.arguments);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论