setAttributes method

  1. @override
Future<bool> setAttributes({
  1. required String matchingKey,
  2. required String? bucketingKey,
  3. required Map<String, dynamic> attributes,
})

Implementation

@override
Future<bool> setAttributes(
    {required String matchingKey,
    required String? bucketingKey,
    required Map<String, dynamic> attributes}) async {
  var result = await methodChannel.invokeMethod(
      'setAttributes',
      _buildParameters(
          matchingKey, bucketingKey, {'attributes': attributes}));

  if (result is bool) {
    return result;
  }

  return false;
}