setUser static method
Sync any change to user information with Freshchat
user is the FreshchatUser object which is constructed with user details
Implementation
static void setUser(FreshchatUser user) async {
await _channel.invokeMethod('setUser', <String, String>{
'firstName': user.getFirstName(),
'lastName': user.getLastName(),
'email': user.getEmail(),
'phoneCountryCode': user.getPhoneCountryCode(),
'phoneNumber': user.getPhone()
});
}