getUserId method
Implementation
Future<String?> getUserId() async {
dynamic result;
try {
result = await instance.invokeMethod('getUserId');
userId = result;
} on PlatformException catch (e) {
userId = "Failed to Invoke: getUserId '${e.message}'.";
}
return result;
}