setAttribute method

  1. @override
Future<bool> setAttribute({
  1. required String matchingKey,
  2. required String? bucketingKey,
  3. required String attributeName,
  4. required dynamic value,
})

Implementation

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

  if (result is bool) {
    return result;
  }

  return false;
}