setAutomaticDataCollectionEnabled method
Sets whether automatic data collection is enabled or disabled.
Implementation
@override
Future<void> setAutomaticDataCollectionEnabled(bool enabled) async {
await _api.setAutomaticDataCollectionEnabled(name, enabled);
_isAutomaticDataCollectionEnabled = enabled;
}