PlayerAttributes constructor

PlayerAttributes({
  1. String? displayName,
  2. String? firstName,
  3. String? lastName,
  4. String? email,
  5. String? gender,
  6. String? mobileNumber,
  7. String? dateOfBirth,
  8. String? joinDate,
  9. String? preferredLanguage,
  10. String? channel,
  11. Map<String, String>? customAttributes,
})

Creates a new PlayerAttributes object.

Arguments (all optional):

  • displayName: The player's display name.
  • firstName: The player's first name.
  • lastName: The player's last name.
  • email: The player's email address.
  • gender: The player's gender.
  • mobileNumber: The player's mobile number.
  • dateOfBirth: The player's date of birth (API format).
  • joinDate: The player's join date (API format).
  • preferredLanguage: The player's preferred language.
  • channel: The channel through which the player joined (defaults to "mobile").
  • customAttributes: A map of additional custom player attributes.

Implementation

PlayerAttributes({
  this.displayName,
  this.firstName,
  this.lastName,
  this.email,
  this.gender,
  this.mobileNumber,
  this.dateOfBirth,
  this.joinDate,
  this.preferredLanguage,
  this.channel,
  this.customAttributes,
});