setuserId method
Geting Appgain user Id
Implementation
Future setuserId({required String userId}) async {
try {
var data = {'userId': userId};
await _channel.invokeMethod(_setUpUserId, data).then((result) {
logger.d('setuserId $result');
});
return 'Success';
} on PlatformException catch (e) {
logger.d(e.message);
return e;
}
}