getUserId method

Future<String?> getUserId()

Get the current user Id.

final userId = await amplitude.getUserId();

Implementation

Future<String?> getUserId() async {
  return await _channel.invokeMethod(
      'getUserId', {'instanceName': configuration.instanceName});
}