getUserId method
void
getUserId()
Implementation
void getUserId() async {
try {
final String result = await instance.invokeMethod('getUserId');
userId = result;
} on PlatformException catch (e) {
userId = "Failed to Invoke: getUserId '${e.message}'.";
}
}