setAnalyticsCollectionEnabled method

Future<void> setAnalyticsCollectionEnabled(
  1. bool enabled
)

Sets whether analytics collection is enabled for this app on this device.

This setting is persisted across app sessions. By default it is enabled.

Implementation

Future<void> setAnalyticsCollectionEnabled(bool enabled) async {
  await _delegate.setAnalyticsCollectionEnabled(enabled);
}