getProfileDetails static method
Retrieves profile details for a given user.
This static method fetches profile details for the user identified by jid
from the Mirrorfly chat platform. It returns a Future that resolves to a String
containing the profile details if the operation is successful. If an error occurs,
null
is returned.
The jid
parameter specifies the JID of the user whose
profile details are to be retrieved.
Example usage:
String? profileDetails = await Mirrorfly.getProfileDetails(jid: 'user123@example.com');
if (profileDetails != null) {
print('Profile details: $profileDetails');
var details = profiledata(profileDetails)
} else {
print('Failed to retrieve profile details.');
}
Implementation
static Future<String?> getProfileDetails({required String jid}) {
return FlyChatFlutterPlatform.instance.getProfileDetails(jid);
}