updateMyProfile method
Implementation
@override
Future<dynamic> updateMyProfile(String name, String email, String mobile,
String status, String? image) async {
//updateProfile
dynamic profileResponse;
try {
profileResponse = await mirrorFlyMethodChannel.invokeMethod(
'updateMyProfile', {
"name": name,
"email": email,
"mobile": mobile,
"status": status,
"image": image
});
debugPrint("updateMyProfile Result ==> $profileResponse");
return profileResponse;
} on PlatformException catch (e) {
debugPrint("Platform Exception ===> $e");
rethrow;
} on Exception catch (error) {
debugPrint("Exception ==> $error");
rethrow;
}
}