setAnalyticsCollectionEnabled method
Sets whether analytics collection is enabled for this app.
Implementation
@override
Future<void> setAnalyticsCollectionEnabled(bool enabled) {
try {
return channel.invokeMethod<void>(
'Analytics#setAnalyticsCollectionEnabled',
<String, bool?>{
'enabled': enabled,
},
);
} catch (e, s) {
convertPlatformException(e, s);
}
}