updateUser method
required map Example: var updatedData = { 'email': 'email', 'phone': 'phone', 'updatedField1': 'value', "updatedField2": "value" };
Implementation
Future updateUser({required Map<String, String> data}) async {
var updateData = {'userData': data};
try {
await _channel.invokeMethod(_updateUserWith, updateData).then((result) {
logger.d('updateUser $result');
});
return 'Success';
} on PlatformException catch (e) {
logger.d(e);
return e;
}
}