identify method

  1. @override
Future<void> identify(
  1. String profileId, {
  2. String? firstName,
  3. String? lastName,
  4. String? email,
  5. String? avatar,
  6. Map<String, Object?>? properties,
})
override

Creates or updates a user profile and binds subsequent events to it.

Implementation

@override
Future<void> identify(
  String profileId, {
  String? firstName,
  String? lastName,
  String? email,
  String? avatar,
  Map<String, Object?>? properties,
}) =>
    _guard('identify', <String, Object?>{
      'profileId': profileId,
      if (firstName != null) 'firstName': firstName,
      if (lastName != null) 'lastName': lastName,
      if (email != null) 'email': email,
      if (avatar != null) 'avatar': avatar,
      if (properties != null) 'properties': properties,
    });