CFUserBuilder class
Builder for creating CFUser instances with a fluent API
Constructors
- CFUserBuilder.new(String userId)
Properties
Methods
-
addBooleanProperty(
String key, bool value, {bool isPrivate = false, bool isSession = false}) → CFUserBuilder - Add a boolean property
-
addContext(
EvaluationContext context) → CFUserBuilder - Add an evaluation context
-
addGeoPointProperty(
String key, double latitude, double longitude, {bool isPrivate = false, bool isSession = false}) → CFUserBuilder - Add a GeoPoint property
-
addJsonProperty(
String key, Map< String, dynamic> value, {bool isPrivate = false, bool isSession = false}) → CFUserBuilder - Add a JSON property
-
addMapProperty(
String key, Map< String, dynamic> value, {bool isPrivate = false, bool isSession = false}) → CFUserBuilder - Add a map property
-
addNumberProperty(
String key, num value, {bool isPrivate = false, bool isSession = false}) → CFUserBuilder - Add a number property
-
addStringProperty(
String key, String value, {bool isPrivate = false, bool isSession = false}) → CFUserBuilder - Add a string property
-
build(
) → CFUser - Build the CFUser instance
-
makeAnonymous(
bool anonymous) → CFUserBuilder - Set whether the user is anonymous
-
makeAttributePrivate(
String attributeName) → CFUserBuilder - Mark an attribute as private
-
makeAttributeSessionLevel(
String attributeName) → CFUserBuilder - Mark an attribute as session-level
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withApplicationInfo(
ApplicationInfo application) → CFUserBuilder - Set application info
-
withDeviceContext(
DeviceContext device) → CFUserBuilder - Set device context
-
withPrivateFields(
PrivateAttributesRequest privateFields) → CFUserBuilder - Set private fields
-
withSessionFields(
PrivateAttributesRequest sessionFields) → CFUserBuilder - Set session fields
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited