LaunchDarklyUser constructor
LaunchDarklyUser({
- String? secondaryKey,
- String? privateSecondaryKey,
- String? ip,
- String? privateIp,
- String? country,
- String? privateCountry,
- String? avatar,
- String? privateAvatar,
- String? email,
- String? privateEmail,
- String? name,
- String? privateName,
- String? firstName,
- String? privateFirstName,
- String? lastName,
- String? privateLastName,
Constructor for creating a LaunchDarkly user.
All parameters are optional.
Use private
-prefixed parameters if you want to avoid sending this paramater back to LaunchDarkly.
Private parameters take precedence over public parameters.
If both specified, public ones will be ignored.
Implementation
LaunchDarklyUser({
String? secondaryKey,
String? privateSecondaryKey,
String? ip,
String? privateIp,
String? country,
String? privateCountry,
String? avatar,
String? privateAvatar,
String? email,
String? privateEmail,
String? name,
String? privateName,
String? firstName,
String? privateFirstName,
String? lastName,
String? privateLastName,
}) : this.secondaryKey = privateSecondaryKey ?? secondaryKey,
this.ip = privateIp ?? ip,
this.country = privateCountry ?? country,
this.avatar = privateAvatar ?? avatar,
this.email = privateEmail ?? email,
this.name = privateName ?? name,
this.firstName = privateFirstName ?? firstName,
this.lastName = privateLastName ?? lastName,
this.privateAttributes = [
if (privateSecondaryKey != null) 'secondary',
if (privateIp != null) 'ip',
if (privateCountry != null) 'country',
if (privateAvatar != null) 'avatar',
if (privateEmail != null) 'email',
if (privateName != null) 'name',
if (privateFirstName != null) 'firstName',
if (privateLastName != null) 'lastName',
];