setCollectAndroidId method
Opt-out of collection of Android ID. If the app does NOT contain Google Play Services, Android ID is collected by the SDK. However, apps with Google play services should avoid Android ID collection as this is in violation of the Google Play policy.
Implementation
void setCollectAndroidId(bool isCollect) {
_methodChannel
.invokeMethod("setCollectAndroidId", {'isCollect': isCollect});
}