setPropertyCollection method

Future<void> setPropertyCollection(
  1. String property,
  2. bool enabled
)

Sets whether to collect system attributes.

Currently, this method applies only to the userAgent attribute.

Implementation

Future<void> setPropertyCollection(String property, bool enabled) async {
  dynamic params = {
    'property': property,
    'enabled': enabled,
  };
  await _channel.invokeMethod('setPropertyCollection', params);
}