transferUserInfo method
Transfer user information.
Returns UserInfoTransfer representing this transfer.
You can cancel any transfer by calling cancel
method of UserInfoTransfer
Implementation
Future<UserInfoTransfer?> transferUserInfo(Map<String, dynamic> userInfo,
{bool isComplication = false}) async {
userInfo["id"] = getRandomString(20);
return channel.invokeMethod("transferUserInfo", {
"userInfo": userInfo,
"isComplication": isComplication
}).then((rawUserInfoTransfer) {
return _mapIdAndConvertUserInfoTransfer(
(rawUserInfoTransfer as Map? ?? {}).toMapStringDynamic());
});
}