setAttribute method

  1. @override
Future<bool> setAttribute(
  1. String attributeName,
  2. dynamic value
)
override

Stores a custom attribute value to be used in all evaluations.

Specify the attribute's name with attributeName, and its value in value.

Returns true if the operation was successful; false otherwise.

Implementation

@override
Future<bool> setAttribute(String attributeName, dynamic value) async {
  return _platform.setAttribute(
      matchingKey: _matchingKey,
      bucketingKey: _bucketingKey,
      attributeName: attributeName,
      value: value);
}