LaunchDarklyUser constructor Null safety

LaunchDarklyUser(
  1. {String? secondaryKey,
  2. String? privateSecondaryKey,
  3. String? ip,
  4. String? privateIp,
  5. String? country,
  6. String? privateCountry,
  7. String? avatar,
  8. String? privateAvatar,
  9. String? email,
  10. String? privateEmail,
  11. String? name,
  12. String? privateName,
  13. String? firstName,
  14. String? privateFirstName,
  15. String? lastName,
  16. 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',
      ];