identify static method

Future<void> identify(
  1. String uid, [
  2. Map<String, Object?>? userVars
])

Identify a user and associate current and future sessions with that user.

Will end the current session and begin a new one if a different uid was previously set. Also allows custom userVars, see FS.setUserVars

For more information, see https://developer.fullstory.com/mobile/flutter/identification/identify-users/

Implementation

static Future<void> identify(String uid, [Map<String, Object?>? userVars]) {
  Map<String, Object?> args = {"uid": uid};
  if (userVars != null) {
    args["userVars"] = userVars;
  }
  return FullstoryFlutterPlatform.instance.identify(args);
}