setUserInfo method
Implementation
@override
Future<bool> setUserInfo(UserInfo userInfo) async {
// TODO: implement event
try {
Map<String, dynamic> data = userInfo.toMap();
final result =
await methodChannel.invokeMethod<bool>('setUserInfo', {'data': data});
return result ?? false;
} catch (e) {
// //print(e);
}
return false;
}