BatchProfileAttributeEditor class abstract
Batch's user data editor.
This object is used to transactionally edit user data. Calls can be chained
in a builder-like fashion.
Once you're done with your changes, call BatchUserDataEditor.save
to persist your changes.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addToArray(
String key, String tag) → BatchProfileAttributeEditor - Add a string value in the specified array attribute. If empty, the array will automatically be created.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAttribute(
String key) → BatchProfileAttributeEditor - Delete an attribute using its key.
-
removeFromArray(
String collection, String tag) → BatchProfileAttributeEditor - Delete a string value from the specified array attribute.
-
save(
) → void - Save all of the pending changes. This action cannot be undone.
-
setBooleanAttribute(
String key, bool value) → BatchProfileAttributeEditor - Set a boolean attribute for a key.
-
setDateTimeAttribute(
String key, DateTime value) → BatchProfileAttributeEditor - Set a Date attribute for a key.
-
setDoubleAttribute(
String key, double value) → BatchProfileAttributeEditor - Set a double attribute for a key.
-
setEmailAddress(
String? email) → BatchProfileAttributeEditor - Set the user email address.
-
setEmailMarketingSubscription(
BatchEmailSubscriptionState state) → BatchProfileAttributeEditor - Set the user email marketing subscription state
-
setIntegerAttribute(
String key, int value) → BatchProfileAttributeEditor - Set an integer attribute for a key.
-
setLanguage(
String? language) → BatchProfileAttributeEditor - Set the application language. Overrides Batch's automatically detected value.
-
setRegion(
String? region) → BatchProfileAttributeEditor - Set the application region. Overrides Batch's automatically detected value.
-
setStringAttribute(
String key, String value) → BatchProfileAttributeEditor - Set a string attribute for a key.
-
setStringListAttribute(
String key, List< String> value) → BatchProfileAttributeEditor - Set a String List attribute for a key.
-
setUrlAttribute(
String key, Uri value) → BatchProfileAttributeEditor - Set a URL attribute for a key.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited