LDUserBuilder class Null safety
A builder for constructing LDUser objects.
Constructors
- LDUserBuilder(String _key)
- Creates a new builder with the specified user key.
Properties
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
anonymous(
bool anonymous) → LDUserBuilder - Sets whether the user is anonymous.
-
avatar(
String avatar) → LDUserBuilder - Sets the user's avatar attribute.
-
build(
) → LDUser - Constructs an LDUser instance from the values currently in the builder.
-
country(
String country) → LDUserBuilder - Sets the user's country.
-
custom(
String name, LDValue value) → LDUserBuilder - Adds a new custom attribute to the user. [...]
-
email(
String email) → LDUserBuilder - Sets the user's email attribute.
-
firstName(
String firstName) → LDUserBuilder - Sets the user's first name attribute.
-
ip(
String ip) → LDUserBuilder - Sets the user's ip attribute.
-
lastName(
String lastName) → LDUserBuilder - Sets the user's last name attribute.
-
name(
String name) → LDUserBuilder - Sets the user's name attribute.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
privateAvatar(
String avatar) → LDUserBuilder - Sets the user's avatar attribute, marking it as private.
-
privateCountry(
String country) → LDUserBuilder - Sets the user's country, marking it as private.
-
privateCustom(
String name, LDValue value) → LDUserBuilder - Adds a new custom attribute to the user, marking it as private.
-
privateEmail(
String email) → LDUserBuilder - Sets the user's email attribute, marking it as private.
-
privateFirstName(
String firstName) → LDUserBuilder - Sets the user's first name attribute, marking it as private.
-
privateIp(
String ip) → LDUserBuilder - Sets the user's ip attribute, marking it as private.
-
privateLastName(
String lastName) → LDUserBuilder - Sets the user's last name attribute, marking it as private.
-
privateName(
String name) → LDUserBuilder - Sets the user's name attribute marking it as private.
-
privateSecondary(
String secondary) → LDUserBuilder - Sets the user's secondary attribute, marking it as private.
-
secondary(
String secondary) → LDUserBuilder - Sets the user's secondary attribute.
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited