setUserId static method

Future<void> setUserId(
  1. String? userId, {
  2. required String tracker,
})

Sets the business user ID to the string for the tracker namespace.

Implementation

static Future<void> setUserId(String? userId,
    {required String tracker}) async {
  await _channel
      .invokeMethod('setUserId', {'tracker': tracker, 'userId': userId});
}