getUserInfo method
获取用户信息
Implementation
static Future<dynamic> getUserInfo(
int platform, Function(SSDKResponseState, Map, SSDKError) result) async {
Map args = {"platform": platform};
Future<dynamic> callback =
await _channel.invokeMethod(ShareSDKMethods.getUserInfo.name, args);
callback.then((dynamic response) {
if (result != null) {
result(_state(response), response["user"],
SSDKError(rawData: response["error"]));
}
});
return callback;
}