getUserReference method

Future<String> getUserReference()

Get the GUID of the user in the session.
Return the GUID of the user in the session.

Implementation

Future<String> getUserReference() async {
  var params = <String, dynamic>{};
  params.putIfAbsent("userId", () => userId);

  return await methodChannel
      .invokeMethod<String>('getUserReference', params)
      .then<String>((String? value) => value ?? "");
}